New file |
| | |
| | | package com.oying.modules.system.domain; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.oying.base.BaseEntity; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author lixin |
| | | * @date 2025-06-16 |
| | | **/ |
| | | @Getter |
| | | @Setter |
| | | @TableName("sys_user_merchant") |
| | | public class UserMerchant extends BaseEntity implements Serializable { |
| | | |
| | | @NotNull(groups = Update.class) |
| | | @TableId(value = "manager_id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "ID", hidden = true) |
| | | private Long managerId; |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long merchantId; |
| | | |
| | | @ApiModelProperty(value = "用户id") |
| | | private Long userId; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "角色类型") |
| | | private String roleType; |
| | | |
| | | @ApiModelProperty(value = "权限集(备用)") |
| | | private String permissions; |
| | | |
| | | public void copy(UserMerchant source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |
| | | } |