作者 yangfu

字典接口开发

@@ -477,8 +477,8 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error @@ -477,8 +477,8 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error
477 "orgCode": resultOrg.OrgCode, 477 "orgCode": resultOrg.OrgCode,
478 "companyId": resultOrg.CompanyID, 478 "companyId": resultOrg.CompanyID,
479 }, 479 },
480 - "currentLoginOrg": resultUser.Org,  
481 - "favoriteMenus": resultUser.FavoriteMenus, 480 + //"currentLoginOrg": resultUser.Org,
  481 + "favoriteMenus": resultUser.FavoriteMenus,
482 } 482 }
483 return user, nil 483 return user, nil
484 } 484 }
@@ -48,5 +48,5 @@ type PersonSearchCooperationProjectQuery struct { @@ -48,5 +48,5 @@ type PersonSearchCooperationProjectQuery struct {
48 // 查询限制 48 // 查询限制
49 PageSize int `json:"pageSize" valid:"Required"` 49 PageSize int `json:"pageSize" valid:"Required"`
50 // 50 //
51 - OrgId int `json:"orgId"` 51 + OrgId int64 `json:"orgId"`
52 } 52 }
@@ -103,11 +103,12 @@ func (srv CooperationProjectService) SearchCooperationProject(projectQuery *comm @@ -103,11 +103,12 @@ func (srv CooperationProjectService) SearchCooperationProject(projectQuery *comm
103 func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery *command.PersonSearchCooperationProjectQuery) (int, interface{}, error) { 103 func (srv CooperationProjectService) PersonSearchCooperationProject(projectQuery *command.PersonSearchCooperationProjectQuery) (int, interface{}, error) {
104 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( 104 creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
105 projectQuery.Operator) 105 projectQuery.Operator)
106 - orgidStr := strconv.Itoa(projectQuery.OrgId) 106 + //orgidStr := strconv.Itoa(projectQuery.OrgId)
107 result, err := creationCooperationGateway.CooperationProjectsSearch(allied_creation_cooperation.ReqCooperationProjectSearch{ 107 result, err := creationCooperationGateway.CooperationProjectsSearch(allied_creation_cooperation.ReqCooperationProjectSearch{
108 PageNumber: projectQuery.PageNumber, 108 PageNumber: projectQuery.PageNumber,
109 PageSize: projectQuery.PageSize, 109 PageSize: projectQuery.PageSize,
110 - OrgIds: []string{orgidStr}, 110 + OrgId: projectQuery.OrgId,
  111 + UserBaseId: projectQuery.Operator.UserBaseId,
111 }) 112 })
112 if err != nil { 113 if err != nil {
113 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 114 return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
@@ -155,10 +155,13 @@ type ( @@ -155,10 +155,13 @@ type (
155 CooperationProjectName string `json:"cooperationProjectName"` 155 CooperationProjectName string `json:"cooperationProjectName"`
156 // 共创项目状态,1招标中,2结束 0 全部 156 // 共创项目状态,1招标中,2结束 0 全部
157 Status int `json:"status"` 157 Status int `json:"status"`
158 - // 158 + // 组织机构ID
  159 + OrgId int64 `cname:"组织机构ID" json:"orgId"`
159 OrgIds []string `json:"orgIds"` 160 OrgIds []string `json:"orgIds"`
160 CooperationProjectNumberLike string `json:"cooperationProjectNumberLike"` 161 CooperationProjectNumberLike string `json:"cooperationProjectNumberLike"`
161 //OffsetLimitFlag bool `json:"offsetLimitFlag"` 162 //OffsetLimitFlag bool `json:"offsetLimitFlag"`
  163 + // 用户基础数据id
  164 + UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId"`
162 } 165 }
163 166
164 DataCooperationProjectSearch struct { 167 DataCooperationProjectSearch struct {
@@ -110,6 +110,7 @@ func CheckAccessToken2() web.FilterFunc { @@ -110,6 +110,7 @@ func CheckAccessToken2() web.FilterFunc {
110 "/v1/auth/reset-password": "", 110 "/v1/auth/reset-password": "",
111 "/v1/auth/refresh-token": "", 111 "/v1/auth/refresh-token": "",
112 "/v1/app/cooperation-projects/person/search": "", 112 "/v1/app/cooperation-projects/person/search": "",
  113 + "v1/common/dictionary/search": "",
113 } 114 }
114 var err error 115 var err error
115 if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil { 116 if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil {