topicUse static method

Future<DataResult> topicUse(
  1. String? topicId
)

Implementation

static Future<DataResult> topicUse(String? topicId) async {
  Map other = {'topicId': topicId};
  var res = await BaseDao.fromBaseEncrypt(other, Address.topicUse());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}