master
wubin 5 years ago
parent f0278f1017
commit ebb81e0453

@ -68,6 +68,7 @@ func GetManageAreaInfo(c *gin.Context) {
// @X-InterfaceName ["GetBaseRolePerson"] // @X-InterfaceName ["GetBaseRolePerson"]
// @X-RoleLimit ["1","2","3","4","5","6","7"] // @X-RoleLimit ["1","2","3","4","5","6","7"]
// @X-TableName ["t_base_role_person"] // @X-TableName ["t_base_role_person"]
// @X-ExtendSwaggerField [{"column_name":"person_name","sample_data":"李老师","column_comment":"登录人名称"}]
// @X-RemoveSwaggerField ["id","id_int","identity_id","b_use","last_updated_time","person_id"] // @X-RemoveSwaggerField ["id","id_int","identity_id","b_use","last_updated_time","person_id"]
// @X-Sort [2] // @X-Sort [2]
func GetPersonRoleInfo(c *gin.Context) { func GetPersonRoleInfo(c *gin.Context) {

@ -2,11 +2,19 @@ package BaseRolePersonService
import ( import (
"dsBaseWeb/Business/BaseRolePerson/BaseRolePersonProto" "dsBaseWeb/Business/BaseRolePerson/BaseRolePersonProto"
"dsBaseWeb/Business/BaseTeacher/BaseTeacherProto"
"dsBaseWeb/Business/BaseTeacher/BaseTeacherService"
"dsBaseWeb/Utils/CommonUtil"
"encoding/json" "encoding/json"
) )
func GetPersonRoleInfo(personId string, actionPersonId string, actionIpAddress string) (*BaseRolePersonProto.Reply, error) { func GetPersonRoleInfo(personId string, actionPersonId string, actionIpAddress string) (*BaseRolePersonProto.Reply, error) {
Reply, err := PageBaseRolePerson(BaseRolePersonProto.QueryArg{PersonId: personId, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) Reply, err := PageBaseRolePerson(BaseRolePersonProto.QueryArg{PersonId: personId, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
if Reply.List != "[]" {
PersonReply, _ := BaseTeacherService.GetBaseTeacher(BaseTeacherProto.ModelArg{PersonId: personId, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
handleListStr := CommonUtil.ListMerge(Reply.List, PersonReply.List, "person_id", "person_id", "person_name", "xm")
Reply.List = handleListStr
}
return Reply, err return Reply, err
} }

@ -57,7 +57,7 @@ func main() {
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
//统一认证拦截器 //统一认证拦截器
//r.Use(Handler.SsoHandler()) r.Use(Handler.SsoHandler())
//前台页面目录 //前台页面目录
r.Static("/dsBaseWeb", "./Html") r.Static("/dsBaseWeb", "./Html")

@ -638,3 +638,11 @@ func ListCollectAttributes(listStr string, attr string) []string {
} }
return orgIdArray return orgIdArray
} }
func ConvertStringArrToInterfaceArr(arr []string) []interface{} {
interfaceArr := make([]interface{}, 0)
for i := range arr {
interfaceArr = append(interfaceArr, arr[i])
}
return interfaceArr
}

Loading…
Cancel
Save