作者 yangfu

字典接口开发

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