This commit is contained in:
momo 2023-11-15 16:49:28 +08:00
parent 0aa7baee1e
commit 0d66003dee
3 changed files with 2 additions and 7 deletions

View File

@ -60,9 +60,6 @@ func (l *SaveApiLogic) SaveApi(req *types.SaveApiReq, userinfo *auth.UserInfo) (
if req.Remark != "" {
updateMap["remark"] = req.Remark
}
if req.Creator != "" {
updateMap["creator"] = req.Creator
}
err1 = l.svcCtx.AllModels.LdapApis.UpdateOne(l.ctx, resOne, updateMap)
} else {
err1 = l.svcCtx.AllModels.LdapApis.InsertOne(l.ctx, gmodel.LdapApis{

View File

@ -17,7 +17,6 @@ type SaveApiReq struct {
Path string `json:"path"`
Category string `json:"category"`
Remark string `json:"remark"`
Creator string `json:"creator"`
}
type GetDepartmentsRsp struct {

View File

@ -47,7 +47,6 @@ type SaveApiReq {
Path string `json:"path"`
Category string `json:"category"`
Remark string `json:"remark"`
Creator string `json:"creator"`
}
//获取部门列表