TxcA

Results 21 comments of TxcA

刚代码没截全,由于我这边表有很多的公用字段,所以封装了`ITable`和`IEntity`。 上面的代码可以看到,我的`UserPermission`是继承`IEntity`和`ITable`的。 uuid 是使用 PostgreSql的 `uuid_generate_v4()`自动生成的 ,数据库里绑定的是`key` 这个字段。 - ITable ```kotlin open class ITable( tableName: String, alias: String? = null, catalog: String? = null, schema: String? = null, entityClass: KClass?...

谢谢,目前可以先用`database.insert(TableUserPermission) {...}`

目前还没有,我这边抽时间也加上。 急用情况可以参照`ForegroundColorSpan`重写updateDrawState实现自定义Span,然后使用`custom`传入。

GMT+8, 2021-03-21 01:50:06 , Use the latest version or the same error.

用`Life`的话,考虑是否被`Lifecycle` cancel() 了? 这个要看你调用处的源码 --- https://github.com/liangjingkanji/Net/blob/40d8998d9e8283863a9d10b66614aba53fe40b46/net/src/main/java/com/drake/net/scope/AndroidScope.kt#L51-L55

@liangjingkanji 好嘞,越来越佩服你的精力了,那么多库还在稳定更新。 我在群的,只是最近忙没去水。

> 群里怎么看不到大佬了 你群是被封了?😂

找到全部`.cuda()` 修改为 `to('cpu')`

在 Kotlin 中,return@label 是一个标签返回语法,用于退出指定标签的 lambda 表达式,但不会中断外部的执行流程。**_这属于 Kotlin 的基础概念之一_**,尤其在处理集合操作和高阶函数时非常常见。 **_需理解:_** - repeat(20) 是 Kotlin 的一个高阶函数,用于执行 lambda 表达式 20 次(类似于 for (i in 0 until 20) 的逻辑) - return@repeat 只中断当前这次的循环执行,不会退出整个 scopeNetLife,也不会停止循环的剩余执行部分。 ![Image](https://github.com/user-attachments/assets/6cc1e8b1-6b39-4dc4-8b66-abc18b82e709)...