-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
547 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
app/src/main/java/com/ditclear/paonet/helper/annotation/ArticleType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
package com.ditclear.paonet.helper.annotation; | ||
|
||
import static com.ditclear.paonet.helper.annotation.ArticleType.ANDROID; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.DAILY; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.DB; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.DEVLOG; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.FRONT_END; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.IOS; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.PROGRAME; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.RECOMMAND; | ||
|
||
import androidx.annotation.IntDef; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import static com.ditclear.paonet.helper.annotation.ArticleType.CXMY; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.GITYUAN; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.GOOGLE; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.GUOLIN; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.HONGYANG; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.MEITUAN; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.XIA; | ||
import static com.ditclear.paonet.helper.annotation.ArticleType.YUGANG; | ||
|
||
/** | ||
* 页面描述:ArticleType 文章类型 | ||
* | ||
* Created by ditclear on 2017/10/17. | ||
*/ | ||
|
||
@IntDef({ANDROID,PROGRAME,FRONT_END,IOS,DB,DEVLOG,RECOMMAND,DAILY}) | ||
@IntDef({HONGYANG,GUOLIN,YUGANG,CXMY,XIA,GOOGLE,MEITUAN,GITYUAN}) | ||
@Retention(RetentionPolicy.SOURCE) | ||
@Target(ElementType.FIELD) | ||
public @interface ArticleType { | ||
int ANDROID=16; | ||
int PROGRAME=6; | ||
int FRONT_END=5; | ||
int IOS=27; | ||
int DB=14; | ||
int DEVLOG=15; | ||
int RECOMMAND=32; | ||
int DAILY=9; | ||
int HONGYANG=408; | ||
int GUOLIN=409; | ||
int YUGANG=410; | ||
int CXMY=411; | ||
int XIA=413; | ||
int GOOGLE=415; | ||
int MEITUAN=417; | ||
int GITYUAN=434; | ||
} |
104 changes: 0 additions & 104 deletions
104
app/src/main/java/com/ditclear/paonet/helper/annotation/CodeType.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/ditclear/paonet/model/data/Banner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.ditclear.paonet.model.data | ||
|
||
data class Banner( | ||
val desc: String, | ||
val id: Int, | ||
val imagePath: String, | ||
val isVisible: Int, | ||
val order: Int, | ||
val title: String, | ||
val type: Int, | ||
val url: String | ||
) |
20 changes: 20 additions & 0 deletions
20
app/src/main/java/com/ditclear/paonet/model/data/BaseResponse2.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.ditclear.paonet.model.data | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* 页面描述:BaseResponse | ||
* | ||
* Created by ditclear on 2017/10/11. | ||
*/ | ||
open class BaseResponse2<T>{ | ||
/** | ||
* sucess : 1 | ||
* message : 成功登录 | ||
* data : | ||
*/ | ||
|
||
var errorCode: Int = 0 | ||
var errorMsg: String? = null | ||
var data: T? = null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/ditclear/paonet/model/data/PageResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.ditclear.paonet.model.data | ||
|
||
data class PageResponse<T>( | ||
val curPage: Int, | ||
val offset: Int, | ||
val over: Boolean, | ||
val pageCount: Int, | ||
val size: Int, | ||
val total: Int, | ||
val datas:List<T> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
app/src/main/java/com/ditclear/paonet/model/data/WArticle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.ditclear.paonet.model.data | ||
|
||
data class WArticle( | ||
val apkLink: String, | ||
val audit: Int, | ||
val author: String, | ||
val chapterId: Int, | ||
val chapterName: String, | ||
val collect: Boolean, | ||
val courseId: Int, | ||
val desc: String, | ||
val envelopePic: String, | ||
val fresh: Boolean, | ||
val id: Int, | ||
val link: String, | ||
val niceDate: String, | ||
val niceShareDate: String, | ||
val origin: String, | ||
val prefix: String, | ||
val projectLink: String, | ||
val publishTime: Long, | ||
val selfVisible: Int, | ||
val shareDate: Any, | ||
val shareUser: String, | ||
val superChapterId: Int, | ||
val superChapterName: String, | ||
val tags: List<Any>, | ||
val title: String, | ||
val type: Int, | ||
val userId: Int, | ||
val visible: Int, | ||
val zan: Int | ||
) |
Oops, something went wrong.