Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDictItemLogic ¶
AddDictItemLogic 添加字典数据
Author: LiuFeiHua Date: 2024/5/28 17:03
func NewAddDictItemLogic ¶
func NewAddDictItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddDictItemLogic
func (*AddDictItemLogic) AddDictItem ¶
func (l *AddDictItemLogic) AddDictItem(in *sysclient.AddDictItemReq) (*sysclient.AddDictItemResp, error)
AddDictItem 添加字典数据 1.根据字典类型查询字典是否已存在 2.查询字典标签是否已存在,如果字典标签已存在,则直接返回 3.查询字典键值是否已存在,如果字典键值已存在,则直接返回 4.如果新增字典数据是默认,则修改其他选项为非默认状态 5.字典数据不存在时,则直接添加字典数据
type DeleteDictItemLogic ¶
DeleteDictItemLogic 删除字典数据
Author: LiuFeiHua Date: 2024/5/28 17:03
func NewDeleteDictItemLogic ¶
func NewDeleteDictItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteDictItemLogic
func (*DeleteDictItemLogic) DeleteDictItem ¶
func (l *DeleteDictItemLogic) DeleteDictItem(in *sysclient.DeleteDictItemReq) (*sysclient.DeleteDictItemResp, error)
DeleteDictItem 删除字典数据
type QueryDictItemDetailLogic ¶
QueryDictItemDetailLogic QueryDictItemDetail
Author: LiuFeiHua Date: 2024/5/30 10:27
func NewQueryDictItemDetailLogic ¶
func NewQueryDictItemDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryDictItemDetailLogic
func (*QueryDictItemDetailLogic) QueryDictItemDetail ¶
func (l *QueryDictItemDetailLogic) QueryDictItemDetail(in *sysclient.QueryDictItemDetailReq) (*sysclient.QueryDictItemDetailResp, error)
QueryDictItemDetail 查询字典数据详情 1.判断字典数据是否存在
type QueryDictItemListLogic ¶
QueryDictItemListLogic 查询字典数据列表
Author: LiuFeiHua Date: 2024/5/28 17:03
func NewQueryDictItemListLogic ¶
func NewQueryDictItemListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryDictItemListLogic
func (*QueryDictItemListLogic) QueryDictItemList ¶
func (l *QueryDictItemListLogic) QueryDictItemList(in *sysclient.QueryDictItemListReq) (*sysclient.QueryDictItemListResp, error)
QueryDictItemList 查询字典数据列表
type UpdateDictItemLogic ¶
UpdateDictItemLogic 更新字典数据
Author: LiuFeiHua Date: 2024/5/28 17:03
func NewUpdateDictItemLogic ¶
func NewUpdateDictItemLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateDictItemLogic
func (*UpdateDictItemLogic) UpdateDictItem ¶
func (l *UpdateDictItemLogic) UpdateDictItem(in *sysclient.UpdateDictItemReq) (*sysclient.UpdateDictItemResp, error)
UpdateDictItem 更新字典数据 1.判断字典数据是否存在 2.根据字典类型查询字典是否已存在 3.查询字典标签是否已存在,如果字典标签已存在,则直接返回 4.查询字典键值是否已存在,如果字典键值已存在,则直接返回 5.如果更新字典数据是默认,则修改其他选项为非默认状态 6.字典数据存在时,则直接更新字典数据
type UpdateDictItemStatusLogic ¶
UpdateDictItemStatusLogic 更新字典数据状态
Author: LiuFeiHua Date: 2024/5/30 10:23
func NewUpdateDictItemStatusLogic ¶
func NewUpdateDictItemStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateDictItemStatusLogic
func (*UpdateDictItemStatusLogic) UpdateDictItemStatus ¶
func (l *UpdateDictItemStatusLogic) UpdateDictItemStatus(in *sysclient.UpdateDictItemStatusReq) (*sysclient.UpdateDictItemStatusResp, error)
UpdateDictItemStatus 更新字典数据状态