package SysLoginpersonService import ( "dsBaseWeb/Business/SysLoginPerson/SysLoginpersonProto" "strings" ) func PageAreaManagerInfo(page int32, limit int32, areaCode string, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { Reply, err := PageAreaManager(SysLoginpersonProto.AreaManagerArg{Page: page, Limit: limit, AreaCode: areaCode, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func ExportAreaManagerInfoExcel(areaCode string, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { Reply, err := PageAreaManagerExcel(SysLoginpersonProto.AreaManagerArg{AreaCode: areaCode, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func PageBureauManagerInfo(page int32, limit int32, areaCode string, orgType int32, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { orgTypeArr := []int32{1, 2, 7} if orgType != -1 { orgTypeArr = []int32{orgType} } Reply, err := PageSysLoginperson(SysLoginpersonProto.QueryArg{Page: page, Limit: limit, AreaCode: areaCode, OrgType: orgTypeArr, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func ExportBureauManagerInfoExcel(areaCode string, orgType int32, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { orgTypeArr := []int32{1, 2, 7} if orgType != -1 { orgTypeArr = []int32{orgType} } Reply, err := PageSysLoginpersonExcel(SysLoginpersonProto.QueryArg{AreaCode: areaCode, OrgType: orgTypeArr, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func ResetManagerPassWord(ids string, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { idsArr := strings.Split(ids, ",") Reply, err := ResetPassWord(SysLoginpersonProto.ResetPassWordArg{Ids: idsArr, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func EnableAccountInfo(ids string, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { idsArr := strings.Split(ids, ",") Reply, err := EnableAccount(SysLoginpersonProto.AccountArg{PersonIds: idsArr, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func DisableAccountInfo(ids string, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { idsArr := strings.Split(ids, ",") Reply, err := DisableAccount(SysLoginpersonProto.AccountArg{PersonIds: idsArr, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func UpdateLoginPassWordInfo(personId string, identityId int32, oldPassWord string, newPassWord string, actionPersonId string, actionIpAddress string) (*SysLoginpersonProto.Reply, error) { Reply, err := UpdateLoginPassWord(SysLoginpersonProto.UpdateLoginPassWordArg{PersonId: personId, IdentityId: identityId, OldPassWord: oldPassWord, NewPassWord: newPassWord, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress}) return Reply, err } func GetBindAuthorizationInfo(personId string) (*SysLoginpersonProto.Reply, error) { Reply, err := GetBindAuthorization(SysLoginpersonProto.GetBindAuthorizationArg{PersonId: personId}) return Reply, err } func UnbindAuthorizationInfo(personId string, typeName string) (*SysLoginpersonProto.Reply, error) { Reply, err := UnbindAuthorization(SysLoginpersonProto.UnbindAuthorizationArg{PersonId: personId, TypeName: typeName}) return Reply, err }