提交 8aa8f8bf 编写于 作者: 门心叼龙's avatar 门心叼龙

code perfect

上级 693df820
......@@ -11,7 +11,7 @@ import com.fly.tour.common.mvp.BasePresenter
* Date: 2018/1/16<br>
* Version: V1.0.0<br>
* Update: <br>
</BaseMvpActivity> */
*/
abstract class BaseMvpActivity<M : BaseModel, V, P : BasePresenter<M, V>> : BaseActivity() {
protected var mPresenter: P? = null
override fun onCreate(savedInstanceState: Bundle?) {
......
......@@ -6,10 +6,9 @@ package com.fly.tour.db
* Date: 2019/5/24<br>
* Version: V1.0.0<br>
* Update: <br>
</NewsDBConfig> */
*/
interface NewsDBConfig {
interface NewsType {
companion object {
val TABLE_NAME = "news_type"
......
......@@ -11,7 +11,7 @@ import android.database.sqlite.SQLiteOpenHelper
* Date: 2019/5/24<br>
* Version: V1.0.0<br>
* Update: <br>
</NewsDBHelper> */
*/
class NewsDBHelper private constructor(context: Context) : SQLiteOpenHelper(context, NewsDBConfig.DB_NAME, null, NewsDBConfig.VERSION_CODE) {
override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
......
......@@ -17,7 +17,7 @@ import java.util.ArrayList
* Date: 2019/5/24<br>
* Version: V1.0.0<br>
* Update: <br>
</NewsTypeDao> */
*/
class NewsDetailDao(context: Context) {
private val mDatabase: SQLiteDatabase
......
......@@ -17,7 +17,7 @@ import java.util.ArrayList
* Date: 2019/5/24<br>
* Version: V1.0.0<br>
* Update: <br>
</NewsTypeDao> */
*/
class NewsTypeDao(context: Context) {
private val mDatabase: SQLiteDatabase
......
......@@ -6,7 +6,7 @@ package com.fly.tour.db.entity
* Date: 2019/5/27<br>
* Version: V1.0.0<br>
* Update: <br>
</NewsDetail> */
*/
class NewsDetail {
var id: Int = 0
var typeid: Int = 0
......
......@@ -10,7 +10,7 @@ import android.os.Parcelable
* Date: 2019/5/27<br>
* Version: V1.0.0<br>
* Update: <br>
</NewsType> */
*/
class NewsType : Parcelable {
var id: Int = 0
var typename: String? = null
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册