feat: 统一IM后台商户文案和默认选择

This commit is contained in:
richjohnrambo
2026-09-09 14:28:44 +08:00
parent da60b52be2
commit 27a368b386
76 changed files with 272 additions and 186 deletions
+11
View File
@@ -239,6 +239,17 @@ func (s *sSysImUser) List(ctx context.Context, in *sysin.ImUserListInp) (list []
if err = fillImUserRegisterTypes(ctx, tenant.Id, list); err != nil {
return nil, 0, err
}
page := in.Page
if page < 1 {
page = 1
}
perPage := in.PerPage
if perPage < 1 {
perPage = 10
}
for index, item := range list {
item.DisplayNo = 1000 + (page-1)*perPage + index
}
return list, totalCount, nil
}
@@ -41,6 +41,7 @@ func (in *ImUserListInp) Filter(ctx context.Context) (err error) {
type ImUserListModel struct {
TenantId int64 `json:"tenantId" dc:"租户ID"`
TenantName string `json:"tenantName" dc:"租户名称"`
DisplayNo int `json:"displayNo" dc:"后台展示编号"`
UserId string `json:"userId" dc:"用户ID"`
Username string `json:"username" dc:"登录账号"`
Phone string `json:"phone" dc:"手机号"`