Browse Source

Merge branch 'jiayue_admin_check'

zwxi 1 year ago
parent
commit
3955a7164e
2 changed files with 9 additions and 2 deletions
  1. 6 0
      controllers/out_link.go
  2. 3 2
      models/out_link.go

+ 6 - 0
controllers/out_link.go

@@ -252,6 +252,12 @@ func (ol *OutLinkController) AllList() {
 	resp := &models.OutLinkListResp{
 		List: respList,
 	}
+	
+	if ol.SysUser.AdminName != "" {
+		desEncrypt := utils.DesBase64Encrypt([]byte(ol.SysUser.AdminName), utils.DesKeySalt)
+		resp.UserCode = string(desEncrypt)
+	}
+
 	br.Data = resp
 	br.Ret = 200
 	br.Success = true

+ 3 - 2
models/out_link.go

@@ -27,8 +27,9 @@ type OutLinkItem struct {
 }
 
 type OutLinkListResp struct {
-	List   []*OutLinkItem
-	Paging *paging.PagingItem `description:"分页数据"`
+	List     []*OutLinkItem
+	UserCode string
+	Paging   *paging.PagingItem `description:"分页数据"`
 }
 
 type OutLinkSaveReq struct {