Skip to content

Commit 038d5ed

Browse files
author
1170762202@qq.com
committed
...
1 parent 316f758 commit 038d5ed

File tree

17 files changed

+527
-155
lines changed

17 files changed

+527
-155
lines changed

library-common/src/main/java/com/zlx/library_common/module/ArticleApi.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import com.zlx.library_common.res_data.ArticleListRes;
66
import com.zlx.library_common.res_data.BannerRes;
7+
import com.zlx.library_common.res_data.MyShareBean;
78
import com.zlx.library_common.res_data.PublicAuthorListRes;
89
import com.zlx.library_common.res_data.SearchBeanRes;
910
import com.zlx.module_network.bean.ApiResponse;
@@ -116,4 +117,21 @@ public interface ArticleApi {
116117
@POST("article/query/{page}/json")
117118
LiveData<ApiResponse<ArticleListRes>> search(@Path("page") int pageNo, @Query("k") String k);
118119

120+
121+
/**
122+
* 我的分享
123+
* @param page
124+
* @return
125+
*/
126+
@GET("user/lg/private_articles/{page}/json")
127+
LiveData<ApiResponse<MyShareBean>> listMyShare(@Path("page") int page);
128+
129+
/**
130+
* 分享文章
131+
* @param title
132+
* @param link
133+
* @return
134+
*/
135+
@POST("lg/user_article/add/json")
136+
LiveData<ApiResponse> shareArticle(@Query("title") String title,@Query("link") String link);
119137
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.zlx.library_common.res_data;
2+
3+
/**
4+
* Created by zlx on 2020/9/25 17:21
5+
* Email: 1170762202@qq.com
6+
* Description:
7+
*/
8+
public class MyShareBean {
9+
/**
10+
* coinInfo : {"coinCount":13582,"level":136,"rank":"4","userId":2,"username":"x**oyang"}
11+
* shareArticles : {"curPage":1,"datas":[{"apkLink":"","audit":1,"author":"xiaoyang","canEdit":false,"chapterId":440,"chapterName":"官方","collect":false,"courseId":13,"desc":"<p>每次新建项目,我们都会生成build.gradle,如果是app模块则会引入:<\/p>\r\n<pre><code>apply plugin: &#39;com.android.application&#39;\r\n<\/code><\/pre><p>如果是lib:<\/p>\r\n<pre><code>apply plugin: &#39;com.android.library&#39;\r\n<\/code><\/pre><p>问题来了:<\/p>\r\n<ol>\r\n<li>apply plugin: &#39;com.android.application&#39;背后的原理是?<\/li>\r\n<\/ol>","descMd":"","envelopePic":"","fresh":true,"id":14500,"link":"https://wanandroid.com/wenda/show/14500","niceDate":"5小时前","niceShareDate":"5小时前","origin":"","prefix":"","projectLink":"","publishTime":1595735648000,"realSuperChapterId":439,"selfVisible":0,"shareDate":1595735648000,"shareUser":"","superChapterId":440,"superChapterName":"问答","tags":[{"name":"本站发布","url":"/article/list/0?cid=440"},{"name":"问答","url":"/wenda"}],"title":"每日一问 | apply plugin: 'com.android.application' 背后发生了什么?","type":2,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":494,"chapterName":"广场","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":true,"id":14497,"link":"https://juejin.im/post/5f1adc98e51d4534732069d1","niceDate":"17小时前","niceShareDate":"17小时前","origin":"","prefix":"","projectLink":"","publishTime":1595689516000,"realSuperChapterId":493,"selfVisible":0,"shareDate":1595689516000,"shareUser":"鸿洋","superChapterId":494,"superChapterName":"广场Tab","tags":[],"title":" 仿系统日志实现一个Crash日志采集工具 ","type":0,"userId":2,"visible":0,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":494,"chapterName":"广场","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":true,"id":14496,"link":"https://juejin.im/post/5f1ae5176fb9a07e7b6269bf","niceDate":"18小时前","niceShareDate":"18小时前","origin":"","prefix":"","projectLink":"","publishTime":1595686018000,"realSuperChapterId":493,"selfVisible":0,"shareDate":1595686018000,"shareUser":"鸿洋","superChapterId":494,"superChapterName":"广场Tab","tags":[],"title":" Android 性能监控框架 Matrix(3)Hprof 文件分析 ","type":0,"userId":2,"visible":0,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":494,"chapterName":"广场","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":true,"id":14495,"link":"https://blog.csdn.net/kangkanglou/article/details/79422520","niceDate":"19小时前","niceShareDate":"19小时前","origin":"","prefix":"","projectLink":"","publishTime":1595685413000,"realSuperChapterId":493,"selfVisible":0,"shareDate":1595685389000,"shareUser":"鸿洋","superChapterId":494,"superChapterName":"广场Tab","tags":[],"title":"JVM指令之invokestatic,invokespecial,invokeinterface,invokevirtual,invokedy","type":0,"userId":2,"visible":0,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":494,"chapterName":"广场","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":true,"id":14494,"link":"https://www.infoq.cn/article/Invokedynamic-Javas-secret-weapon","niceDate":"19小时前","niceShareDate":"19小时前","origin":"","prefix":"","projectLink":"","publishTime":1595683638000,"realSuperChapterId":493,"selfVisible":0,"shareDate":1595683638000,"shareUser":"鸿洋","superChapterId":494,"superChapterName":"广场Tab","tags":[],"title":"Invokedynamic:Java的秘密武器 - InfoQ","type":0,"userId":2,"visible":0,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":494,"chapterName":"广场","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":true,"id":14492,"link":"https://juejin.im/post/5f04129c6fb9a07e8e44e7c3","niceDate":"21小时前","niceShareDate":"21小时前","origin":"","prefix":"","projectLink":"","publishTime":1595674919000,"realSuperChapterId":493,"selfVisible":0,"shareDate":1595674919000,"shareUser":"鸿洋","superChapterId":494,"superChapterName":"广场Tab","tags":[],"title":" JVM 角度看代码优化 ","type":0,"userId":2,"visible":0,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":494,"chapterName":"广场","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":true,"id":14491,"link":"https://www.jianshu.com/p/0ec378cfb4c7","niceDate":"22小时前","niceShareDate":"22小时前","origin":"","prefix":"","projectLink":"","publishTime":1595672891000,"realSuperChapterId":493,"selfVisible":0,"shareDate":1595672891000,"shareUser":"鸿洋","superChapterId":494,"superChapterName":"广场Tab","tags":[],"title":"宏观剖析Glide4.8.0源码 ","type":0,"userId":2,"visible":0,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":494,"chapterName":"广场","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":true,"id":14490,"link":"https://juejin.im/post/5f16cf76f265da22fd6399ef","niceDate":"23小时前","niceShareDate":"23小时前","origin":"","prefix":"","projectLink":"","publishTime":1595669085000,"realSuperChapterId":493,"selfVisible":0,"shareDate":1595669085000,"shareUser":"鸿洋","superChapterId":494,"superChapterName":"广场Tab","tags":[],"title":" Thread也会OOM吗? ","type":0,"userId":2,"visible":0,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":486,"chapterName":"LiveData","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14457,"link":"https://juejin.im/post/5f171848f265da22fd639a56","niceDate":"2020-07-23 00:08","niceShareDate":"2020-07-23 00:04","origin":"","prefix":"","projectLink":"","publishTime":1595434112000,"realSuperChapterId":422,"selfVisible":0,"shareDate":1595433842000,"shareUser":"鸿洋","superChapterId":423,"superChapterName":"Jetpack","tags":[],"title":"自己动手改造 Jetpack LiveData","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":78,"chapterName":"性能优化","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14458,"link":"https://juejin.im/post/5f168dd9f265da22ce394a7a","niceDate":"2020-07-23 00:08","niceShareDate":"2020-07-23 00:04","origin":"","prefix":"","projectLink":"","publishTime":1595434100000,"realSuperChapterId":53,"selfVisible":0,"shareDate":1595433859000,"shareUser":"鸿洋","superChapterId":81,"superChapterName":"热门专题","tags":[],"title":"一个更贴近 android 场景的启动框架 | Anchors","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":228,"chapterName":"辅助 or 工具类","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14459,"link":"https://www.jianshu.com/p/1eca5e32fad2","niceDate":"2020-07-23 00:08","niceShareDate":"2020-07-23 00:04","origin":"","prefix":"","projectLink":"","publishTime":1595434089000,"realSuperChapterId":156,"selfVisible":0,"shareDate":1595433892000,"shareUser":"鸿洋","superChapterId":135,"superChapterName":"项目必备","tags":[],"title":"基于JSON RPC的一种Android跨进程调用解决方案了解一下?","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":78,"chapterName":"性能优化","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14460,"link":"https://www.jianshu.com/p/ebbe8341c582","niceDate":"2020-07-23 00:07","niceShareDate":"2020-07-23 00:05","origin":"","prefix":"","projectLink":"","publishTime":1595434028000,"realSuperChapterId":53,"selfVisible":0,"shareDate":1595433931000,"shareUser":"鸿洋","superChapterId":81,"superChapterName":"热门专题","tags":[],"title":"Android apk瘦身更佳实践(一):去除R.class","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":100,"chapterName":"RecyclerView","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14461,"link":"https://www.jianshu.com/p/3e9aa4bdaefd?utm_source=desktop&amp;utm_medium=timeline","niceDate":"2020-07-23 00:06","niceShareDate":"2020-07-23 00:06","origin":"","prefix":"","projectLink":"","publishTime":1595434008000,"realSuperChapterId":39,"selfVisible":0,"shareDate":1595433992000,"shareUser":"鸿洋","superChapterId":54,"superChapterName":"5.+高新技术","tags":[],"title":"让你彻底掌握RecyclerView的缓存机制","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":93,"chapterName":"基础知识","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14446,"link":"https://juejin.im/post/5f156c8de51d453476714a37","niceDate":"2020-07-22 00:14","niceShareDate":"2020-07-22 00:13","origin":"","prefix":"","projectLink":"","publishTime":1595348088000,"realSuperChapterId":37,"selfVisible":0,"shareDate":1595348037000,"shareUser":"鸿洋","superChapterId":126,"superChapterName":"自定义控件","tags":[],"title":"Android进阶基础系列:View的工作原理 全面理解!","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":510,"chapterName":"大厂分享","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14433,"link":"https://juejin.im/post/5f144b2f6fb9a07e6f7b7fce#comment","niceDate":"2020-07-21 00:08","niceShareDate":"2020-07-21 00:05","origin":"","prefix":"","projectLink":"","publishTime":1595261306000,"realSuperChapterId":509,"selfVisible":0,"shareDate":1595261147000,"shareUser":"鸿洋","superChapterId":510,"superChapterName":"大厂对外分享","tags":[],"title":"今日头条 Android &#39;秒&#39; 级编译速度优化","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":444,"chapterName":"androidx","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14434,"link":"https://juejin.im/post/5f02bb50f265da22a8514e49","niceDate":"2020-07-21 00:08","niceShareDate":"2020-07-21 00:06","origin":"","prefix":"","projectLink":"","publishTime":1595261300000,"realSuperChapterId":39,"selfVisible":0,"shareDate":1595261179000,"shareUser":"鸿洋","superChapterId":54,"superChapterName":"5.+高新技术","tags":[],"title":"错误的ViewPager用法(填坑):ViewPager2做了什么?","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":142,"chapterName":"ConstraintLayout","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14436,"link":"https://juejin.im/post/5f0e9eea6fb9a07e7e0444e3","niceDate":"2020-07-21 00:08","niceShareDate":"2020-07-21 00:06","origin":"","prefix":"","projectLink":"","publishTime":1595261288000,"realSuperChapterId":39,"selfVisible":0,"shareDate":1595261188000,"shareUser":"鸿洋","superChapterId":54,"superChapterName":"5.+高新技术","tags":[],"title":"Android MotionLayout动画:续写ConstraintLayout新篇章","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"xiaoyang","canEdit":false,"chapterId":440,"chapterName":"官方","collect":false,"courseId":13,"desc":"<p>View 的三大流程:测量、布局、绘制,我想大家应该都烂熟于心。<\/p>\r\n<p>而在绘制阶段,ViewGroup 不光要绘制自身,还需循环绘制其一众子 View,这个绘制策略默认为顺序绘制,即 [0 ~ childCount)。<\/p>\r\n<p>这个默认的策略,有办法调整吗?<\/p>\r\n<p>例如修改成 (childCount ~ 0],或是修成某个 View 更后绘制。同时又有什么场景需要我们做这样的修改?<\/p>\r\n<p>问题来了:<\/p>\r\n<ol>\r\n<li>这个默认的策略,有办法调整吗?<\/li>\r\n<li>修改了之后,事件分发需要特殊处理吗?还是需要特殊处理。<\/li>\r\n<\/ol>","descMd":"","envelopePic":"","fresh":false,"id":14409,"link":"https://www.wanandroid.com/wenda/show/14409","niceDate":"2020-07-20 00:01","niceShareDate":"2020-07-19 18:07","origin":"","prefix":"","projectLink":"","publishTime":1595174476000,"realSuperChapterId":439,"selfVisible":0,"shareDate":1595153262000,"shareUser":"","superChapterId":440,"superChapterName":"问答","tags":[{"name":"本站发布","url":"/article/list/0?cid=440"},{"name":"问答","url":"/wenda"}],"title":"每日一问| View 绘制的一个细节,如何修改 View 绘制的顺序?","type":1,"userId":2,"visible":1,"zan":5},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":313,"chapterName":"字节码","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14403,"link":"https://www.jianshu.com/p/d3ccd97ec5d1","niceDate":"2020-07-20 00:00","niceShareDate":"2020-07-19 14:17","origin":"","prefix":"","projectLink":"","publishTime":1595174437000,"realSuperChapterId":244,"selfVisible":0,"shareDate":1595139462000,"shareUser":"鸿洋","superChapterId":245,"superChapterName":"Java深入","tags":[],"title":"ASM简介(二)","type":0,"userId":2,"visible":1,"zan":0},{"apkLink":"","audit":1,"author":"","canEdit":false,"chapterId":313,"chapterName":"字节码","collect":false,"courseId":13,"desc":"","descMd":"","envelopePic":"","fresh":false,"id":14402,"link":"https://www.jianshu.com/p/85502e42bbb6","niceDate":"2020-07-20 00:00","niceShareDate":"2020-07-19 14:17","origin":"","prefix":"","projectLink":"","publishTime":1595174418000,"realSuperChapterId":244,"selfVisible":0,"shareDate":1595139445000,"shareUser":"鸿洋","superChapterId":245,"superChapterName":"Java深入","tags":[],"title":"ASM简介(一)","type":0,"userId":2,"visible":1,"zan":0}],"offset":0,"over":false,"pageCount":30,"size":20,"total":592}
12+
*/
13+
private UserInfo coinInfo;
14+
private ArticleListRes shareArticles;
15+
16+
public UserInfo getCoinInfo() {
17+
return coinInfo;
18+
}
19+
20+
public void setCoinInfo(UserInfo coinInfo) {
21+
this.coinInfo = coinInfo;
22+
}
23+
24+
public ArticleListRes getShareArticles() {
25+
return shareArticles;
26+
}
27+
28+
public void setShareArticles(ArticleListRes shareArticles) {
29+
this.shareArticles = shareArticles;
30+
}
31+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.module_main">
2+
package="com.zlx.module_main">
33

44
<application>
5-
<activity android:name=".activity.MainActivity" />
5+
<activity android:name="com.zlx.module_main.activity.MainActivity" />
66
</application>
77
</manifest>

module-main/src/main/java/com/example/module_main/activity/MainActivity.java renamed to module-main/src/main/java/com/zlx/module_main/activity/MainActivity.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.module_main.activity;
1+
package com.zlx.module_main.activity;
22

33
import android.content.Intent;
44
import android.graphics.Typeface;
@@ -9,12 +9,11 @@
99

1010
import com.alibaba.android.arouter.facade.annotation.Route;
1111
import com.alibaba.android.arouter.launcher.ARouter;
12-
import com.example.module_main.R;
13-
import com.example.module_main.R2;
14-
import com.example.module_main.adapter.VpAdapterMain;
15-
import com.example.module_main.impl.TabPagerListener;
12+
import com.zlx.module_main.R;
13+
import com.zlx.module_main.R2;
14+
import com.zlx.module_main.adapter.VpAdapterMain;
15+
import com.zlx.module_main.impl.TabPagerListener;
1616
import com.zlx.module_base.base_ac.BaseAc;
17-
import com.zlx.module_base.base_util.ToastUtil;
1817
import com.zlx.module_base.constant.RouterActivityPath;
1918
import com.zlx.module_base.constant.RouterFragmentPath;
2019
import com.zlx.widget.bubblenavigation.BubbleNavigationConstraintView;

module-main/src/main/java/com/example/module_main/adapter/VpAdapterMain.java renamed to module-main/src/main/java/com/zlx/module_main/adapter/VpAdapterMain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package com.example.module_main.adapter;
1+
package com.zlx.module_main.adapter;
22

33
import androidx.fragment.app.Fragment;
44
import androidx.fragment.app.FragmentManager;
55
import androidx.fragment.app.FragmentPagerAdapter;
66

7-
import com.example.module_main.impl.TabPagerListener;
7+
import com.zlx.module_main.impl.TabPagerListener;
88

99
/**
1010
* @date: 2019\3\5 0005

module-main/src/main/java/com/example/module_main/impl/TabPagerListener.java renamed to module-main/src/main/java/com/zlx/module_main/impl/TabPagerListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.module_main.impl;
1+
package com.zlx.module_main.impl;
22

33
import androidx.fragment.app.Fragment;
44

module-main/src/main/java/com/example/module_main/intercept/LoginInterceptor.java renamed to module-main/src/main/java/com/zlx/module_main/intercept/LoginInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.module_main.intercept;
1+
package com.zlx.module_main.intercept;
22

33
import android.content.Context;
44
import android.util.Log;

module-mine/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
<activity android:name=".activity.OpenSourceAc" />
1212
<activity android:name=".activity.AboutAuthorAc" />
1313
<activity android:name=".activity.MyShareAc" />
14+
<activity android:name=".activity.ShareArticleAc" />
1415
</application>
1516
</manifest>

0 commit comments

Comments
 (0)