You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
3.2 KiB
61 lines
3.2 KiB
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
|
|
}
|