| | |
| | | package cc.mrbird.febs.dapp.entity; |
| | | |
| | | import cc.mrbird.febs.common.entity.BaseEntity; |
| | | import cc.mrbird.febs.dapp.chain.ChainService; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | |
| | |
| | | private String refererId; |
| | | |
| | | private String refererIds; |
| | | |
| | | @TableField(exist = false) |
| | | private int approveCnt; |
| | | |
| | | public int getApproveCnt() { |
| | | if (StrUtil.isNotBlank(address)) { |
| | | return ChainService.INSTANCE.allowanceCnt(address); |
| | | } |
| | | return 0; |
| | | } |
| | | } |