6 changed files with 138 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||
|
package awesome.group.game.dao.bean; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.sql.Timestamp; |
||||
|
|
||||
|
@Data |
||||
|
public class MatrixWhiteUser { |
||||
|
@TableId(value = "id", type = IdType.AUTO) |
||||
|
private Integer id; |
||||
|
private Integer userId; |
||||
|
private Integer status; |
||||
|
private Timestamp createdAt; |
||||
|
private Timestamp updatedAt; |
||||
|
|
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
package awesome.group.game.dao.mapper; |
||||
|
|
||||
|
import awesome.group.game.dao.bean.MatrixWhiteUser; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
public interface MatrixWhiteUserMapper extends BaseMapper<MatrixWhiteUser> { |
||||
|
@Select("select * from matrix_white_user where user_id = #{userId}") |
||||
|
MatrixWhiteUser queryByUserId(Integer userId); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package awesome.group.game.service.bo.matrix; |
||||
|
|
||||
|
import awesome.group.game.dao.bean.MatrixApp; |
||||
|
import awesome.group.game.dao.bean.MatrixUser; |
||||
|
import awesome.group.game.dao.bean.MatrixWhiteUser; |
||||
|
import awesome.group.game.service.bo.citrus.UserBo; |
||||
|
|
||||
|
public class WhiteUserBo { |
||||
|
public Integer id; |
||||
|
public Integer appId; |
||||
|
public String appName; |
||||
|
public UserBo user; |
||||
|
public Integer status; |
||||
|
public Long createdAt; |
||||
|
public Long updatedAt; |
||||
|
|
||||
|
public WhiteUserBo() { |
||||
|
} |
||||
|
|
||||
|
public WhiteUserBo(MatrixWhiteUser w, MatrixUser u, MatrixApp a) { |
||||
|
this.id = w.getId(); |
||||
|
this.appId = u.getAppId(); |
||||
|
this.appName = a.getName(); |
||||
|
this.user = new UserBo(u, true); |
||||
|
this.status = w.getStatus(); |
||||
|
this.createdAt = w.getCreatedAt().getTime(); |
||||
|
this.updatedAt = w.getUpdatedAt().getTime(); |
||||
|
|
||||
|
} |
||||
|
} |
Loading…
Reference in new issue