Documentation ¶
Overview ¶
Package srun @program: 深澜软件-北向接口GO版 SDK-0.0.1 @author: DM @create: 2021-03-26 16:01
Package srun @program: 深澜软件-北向接口GO版 SDK-0.0.1 @author: DM @create: 2021-03-26 16:00
Index ¶
- Constants
- func AccessToken() string
- func DeleteOrUpdate(requestUrl string, params map[string]string, method string) ([]byte, error)
- func Get(requestUrl string) (body []byte, err error)
- func LogError(method string, url string, responseOrInfo string, params string)
- func LogInfo(method string, url string, responseOrInfo string, params string)
- func MD5(v string) string
- func Post(requestUrl string, params map[string]string) (body []byte, err error)
- func PostSso(requestUrl string, params map[string]string) (body []byte, err error)
- func PostSso_(url string, body io.Reader) (resp *http.Response, err error)
- func Put(requestUrl string, params map[string]string) ([]byte, error)
- func ReadFile(fileName string) (m map[string]interface{}, err error)
- func Url(api string) string
- func UserExists(username string) (err error)
- func UserRight(params map[string]string) (err error)
- type HttpResult
- func AddEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
- func AuthErrMsg_(params map[string]string) (httpResult *HttpResult, err error)
- func BillingCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func ControlCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func DayDetailEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
- func DayOnlineIndexEduroamCount_(params map[string]string) (httpResult *HttpResult, err error)
- func DelEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
- func DisableProduct_(params map[string]string) (httpResult *HttpResult, err error)
- func DomainTopEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
- func DropOnlineIndexEduroam_(params map[string]string) (httpResult *HttpResult, err error)
- func DropReason_(params map[string]string) (httpResult *HttpResult, err error)
- func EnableProduct_(params map[string]string) (httpResult *HttpResult, err error)
- func EquipmentOnlineIndexEduroam_(params map[string]string) (httpResult *HttpResult, err error)
- func FinancialAddUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func FinancialDeleteUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func FinancialEditUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func GroupCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func IdmDeviceCreate_(params map[string]string) (httpResult *HttpResult, err error)
- func IdmDeviceFactory_(params map[string]string) (httpResult *HttpResult, err error)
- func IdmDeviceIndex_(params map[string]string) (httpResult *HttpResult, err error)
- func IdmDeviceOs_(params map[string]string) (httpResult *HttpResult, err error)
- func IdmProductIndex_(params map[string]string) (httpResult *HttpResult, err error)
- func IdmProductUpdate_(params map[string]string) (httpResult *HttpResult, err error)
- func InVisitorEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
- func ListEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
- func LoginUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func MaxOnlineNumUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func OnlineIndexEduroam_(params map[string]string) (httpResult *HttpResult, err error)
- func OutVisitorEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
- func ProductCanSubscribe_(params map[string]string) (httpResult *HttpResult, err error)
- func ProductCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func ProductDeleteUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func ProductModifyUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func ProductSubscribeUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func ProductTransferUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func RechargeWallet_(params map[string]string) (httpResult *HttpResult, err error)
- func Request(api string, MethodParamsNoAccessToken ...interface{}) (httpResult *HttpResult, err error)
- func ReservationTransferUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func ResetPasswordManager_(params map[string]string) (httpResult *HttpResult, err error)
- func SearchEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
- func SearchEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
- func SysMsg_(params map[string]string) (httpResult *HttpResult, err error)
- func TopEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
- func UpdateEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
- func UserCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func UserDeleteUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func UserRestPassUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func UserStatusControl_(params map[string]string) (httpResult *HttpResult, err error)
- func UserUpdateUrl_(params map[string]string) (httpResult *HttpResult, err error)
- func UsersPackages_(params map[string]string) (httpResult *HttpResult, err error)
- func VisitorEduroamDetail_(params map[string]string) (httpResult *HttpResult, err error)
- type HttpResultSso
- type Meta
- type MyFormatter
- type Northbound
- type SsoResult
Constants ¶
const ( TokenUrl = "/api/v1/auth/get-access-token" // 获取token /** * 用户管理 */ LoginUrl = "/api/v1/user/validate-manager" UserCreateUrl = "/api/v1/users" UserUpdateUrl = "/api/v1/user/update" UserDeleteUrl = "/api/v1/user/delete" UserRestPassUrl = "/api/v1/user/super-reset-password" UserStatusControl = "/api/v1/user/user-status-control" ResetPasswordManager = "/api/v1/user/reset-password-manager" /** * 产品相关接口 */ ControlCreateUrl = "/api/v1/strategy/control-create" BillingCreateUrl = "/api/v1/strategy/billing-create" ProductCreateUrl = "/api/v1/product/create" ProductDeleteUrl = "/api/v1/product/delete" ProductModifyUrl = "/api/v1/product/update" ProductCanSubscribe = "/api/v1/group/subscribe" ProductTransferUrl = "/api/v1/product/transfer-product" //产品转移(立即生效) UsersPackages = "/api/v1/package/users-packages" //查询已订购的产品套餐 EnableProduct = "/api/v1/product/enable-product" //启用产品接口 DisableProduct = "/api/v1/product/disable-product" //禁用产品接口 ProductSubscribeUrl = "/api/v1/product/subscribe" //订购产品 ReservationTransferUrl = "/api/v1/product/reservation-transfer-products" //预约转移 /** * 财务相关 */ FinancialAddUrl = "/api/v1/financial/create-payment" FinancialEditUrl = "/api/v1/financial/update-payment" FinancialDeleteUrl = "/api/v1/financial/delete-payment" RechargeWallet = "/api/v1/financial/recharge-wallet" //电子钱包充值 /** *学校域名对应关系 */ SearchEduroamSchool = "/api/eduroam/domain/index" //查询学校域名关系接口 AddEduroamSchool = "/api/eduroam/domain/create" //添加学校域名关系接口 UpdateEduroamSchool = "/api/eduroam/domain/update" //编辑学校域名关系接口 DelEduroamSchool = "/api/eduroam/domain/delete" //删除学校域名关系接口 /** *访客接口 */ SearchEduroamVisitor = "/api/eduroam/visitor/index" //访客组成接口 ListEduroamVisitor = "/api/eduroam/visitor/list" //访客列表接口 TopEduroamVisitor = "/api/eduroam/visitor/use-top" //使用量TOP接口 DomainTopEduroamVisitor = "/api/eduroam/visitor/domain-top" //学校流量统计 DayDetailEduroamVisitor = "/api/eduroam/visitor/day-detail" //每日访客流量/时长接口 InVisitorEduroamVisitor = "/api/eduroam/visitor/in-visitor" //每日来访查询接口 OutVisitorEduroamVisitor = "/api/eduroam/visitor/out-visitor" //出访查询接口 VisitorEduroamDetail = "/api/v1/user/view" //用户详情查询 /** * 在线相关 */ OnlineIndexEduroam = "/api/eduroam/online/index" //查询在线表接口 DayOnlineIndexEduroamCount = "/api/eduroam/online/online-count" //每日在线分析/统计接口 DropOnlineIndexEduroam = "/api/v1/base/online-drop" //在线设备下线接口 EquipmentOnlineIndexEduroam = "/api/v1/base/online-equipment" //查询在线设备接口 /** * 用户组相关 */ GroupCreateUrl = "/api/v1/groups" //添加用户组接口 MaxOnlineNum = "/api/v1/user/max-online-num" // 修改最大在线数接口 /** * idm相关 */ IdmDeviceIndex = "/api/idm/device/index" //查询设备列表接口 IdmDeviceFactory = "/api/idm/device/factory" //查询厂商接口 IdmDeviceOs = "/api/idm/device/os" //查询设备操作系统接口 IdmDeviceCreate = "/api/idm/device/create" //添加设备接口 IdmProductIndex = "/api/idm/products/index" //查询产品列表 IdmProductUpdate = "/api/idm/products/update" //修改产品接口,异步操作可以修改产品所绑定的计费控制两个策略 /** * 错误信息接口 */ AuthErrMsg = "/api/eduroam/settings/auth-err-msg" //上网认证错误消息 DropReason = "/api/eduroam/settings/drop-reason" //下线原因 SysMsg = "/api/eduroam/settings/sys-msg" //系统错误信息 /** * Redis键名 */ HashUsersSecret = "hash:users:secret:" HashUsersLogin = "helper:login:" HashUsersInfo = "hash:users:" HashBillingPre = "hash:billing:" //计费策略策略hash的key前缀 HashProductPre = "hash:products:" //产品hash的key前缀 HashControlPre = "hash:control:" //控制策略hash的key前缀 HashHelperBx = "hash:server:api:info" //北向接口服務器地址 HashPackagePre = "hash:package:" //套餐的key前缀 ListControlPre = "list:control" //控制策略list的key前缀 ListBillingPre = "list:billing" //计费策略list的key前缀 ListProductPre = "list:products:" //产品list的key前缀 ListProducts = "list:products" ListPackagesPre = "list:package" //套餐list的key前缀 ListExcelPortSelected = "list:excel:export:" ListProductsControl = "list:products:control:" //产品对应的控制策略list的key前缀 ListLogOnlineDetail = "key:advanced:online:detail:selected" //上网明细日志字段高级设置选项 ListLogAuth = "key:advanced:auth:selected" //认证日志字段高级设置 ListLogSystem = "key:advanced:system:selected" //系统日志字段高级设置 ListOnlineRadius = "key:advanced:online:radius:selected" //在线用户字段高级设置 ListVisitor = "key:advanced:visitor-list:selected" //访客字段高级设置 ListIdmUsersList = "key:advanced:idm-users-list:selected" //IDM系统用户表[设备表]字段高级设置 ListUsersProducts = "list:users:products:" //用户绑定的产品的list前缀 IncrRadAttrId = "rad_attr_id" //radius属性自增id HashRadAttr = "hash:rad_attr:" //radius属性hash的key前缀 ListRadAttr = "list:rad_attr" //radius属性list KeyRadAttrId = "key:rad_attr_id" //radius属性的key StringSystemStyleKey = "key:system:style" IdmListDhcpPool6 = "list:dhcp:pool6" //ipv6地址池,ID列表 IdmListDhcpPool = "list:dhcp:pool" //ipv4地址池,ID列表 IdmListDhcpPool6UsedIps = "list:dhcp:pool6:used_ips:" //已使用ipv6地址池ip列表 IdmListDhcpPoolUsedIps = "list:dhcp:pool:used_ips:" //已使用ipv4地址池ip列表 IdmHashDhcpInfoIp = "hash:dhcp:info:ip:" //已使用ipv4详细信息 IdmHashDhcpInfoIp6 = "hash:dhcp:info:ip6:" //已使用ipv6详细信息 IdmHashDhcpInfo = "hash:dhcp:pool:" //ipv4地址池信息 IdmHashDhcpInfo6 = "hash:dhcp:pool6:" //ipv6地址池信息 ListInterface = "list:interface" //interface核心接口list ListNasType = "list:nas_type" HashNasType = "hash:nas_type:" /** * 数据库扩展字段表名 */ ExtendTableName = "extends_field" TmpUsers = "tmp_users" PayList = "pay_list" PayType = "pay_type" UserGroup = "users_group" Users = "users" OnlineRadiusTable = "online_radius" //在线表 )
@title TokenUrl @description 北向接口列表 @author DM @time 2021/4/2 21:06
Variables ¶
This section is empty.
Functions ¶
func AccessToken ¶
func AccessToken() string
AccessToken @title AccessToken @description 获取北向接口access_token @author DM @time 2021/4/2 21:00 @return string
func DeleteOrUpdate ¶
DeleteOrUpdate @title DeleteOrUpdate @description 封装https请求方法 @author DM @time 2021/4/2 21:04 @param requestUrl string 请求的url @param params @param method @return []byte 返回的结果 @return error
func Get ¶
Get @title Get @description 封装https 的get方法 @author DM @time 2021/4/2 21:02 @param requestUrl string 请求的url @return body []byte 返回的结果 @return err
func Post ¶
Post @title Post @description 封装https的post方法 @author DM @time 2021/4/2 21:03 @param requestUrl string 请求的url @param params map[string]string 请求的参数 @return body []byte 返回的结果 @return err
func Put ¶
Put @title Put @description 封装https的put方法 @author DM @time 2021/4/2 21:05 @param requestUrl string 请求的url @param params map[string]string 请求的参数 @return []byte 返回的结果 @return error
Types ¶
type HttpResult ¶
type HttpResult struct { Code int `json:"code"` Message string `json:"message"` Version string `json:"version"` Data interface{} `json:"data"` Meta Meta `json:"_meta"` }
HttpResult @title HttpResult @description 用于接收北向接口返回值 @param Data Data为interface类型是因为其返回值可能为map或其他类型的值 @author DM @time 2021/4/2 21:07
func AddEduroamSchool_ ¶
func AddEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
AddEduroamSchool_ @title AddEduroamSchool_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func AuthErrMsg_ ¶
func AuthErrMsg_(params map[string]string) (httpResult *HttpResult, err error)
AuthErrMsg_ @title AuthErrMsg_ @description omit @author FangWenQiang @time 2021/4/18 14:11 @param params @return httpResult @return err
func BillingCreateUrl_ ¶
func BillingCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
BillingCreateUrl_ @title BillingCreateUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ControlCreateUrl_ ¶
func ControlCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
ControlCreateUrl_ @title ControlCreateUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func DayDetailEduroamVisitor_ ¶
func DayDetailEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
DayDetailEduroamVisitor_ @title DayDetailEduroamVisitor_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func DayOnlineIndexEduroamCount_ ¶
func DayOnlineIndexEduroamCount_(params map[string]string) (httpResult *HttpResult, err error)
DayOnlineIndexEduroamCount_ @title DayOnlineIndexEduroamCount_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func DelEduroamSchool_ ¶
func DelEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
DelEduroamSchool_ @title DelEduroamSchool_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func DisableProduct_ ¶
func DisableProduct_(params map[string]string) (httpResult *HttpResult, err error)
DisableProduct_ @title DisableProduct_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func DomainTopEduroamVisitor_ ¶
func DomainTopEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
DomainTopEduroamVisitor_ @title DomainTopEduroamVisitor_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func DropOnlineIndexEduroam_ ¶
func DropOnlineIndexEduroam_(params map[string]string) (httpResult *HttpResult, err error)
DropOnlineIndexEduroam_ @title DropOnlineIndexEduroam_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func DropReason_ ¶
func DropReason_(params map[string]string) (httpResult *HttpResult, err error)
DropReason_ @title DropReason_ @description omit @author FangWenQiang @time 2021/4/18 14:11 @param params @return httpResult @return err
func EnableProduct_ ¶
func EnableProduct_(params map[string]string) (httpResult *HttpResult, err error)
EnableProduct_ @title EnableProduct_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func EquipmentOnlineIndexEduroam_ ¶
func EquipmentOnlineIndexEduroam_(params map[string]string) (httpResult *HttpResult, err error)
EquipmentOnlineIndexEduroam_ @title EquipmentOnlineIndexEduroam_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func FinancialAddUrl_ ¶
func FinancialAddUrl_(params map[string]string) (httpResult *HttpResult, err error)
FinancialAddUrl_ @title FinancialAddUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func FinancialDeleteUrl_ ¶
func FinancialDeleteUrl_(params map[string]string) (httpResult *HttpResult, err error)
FinancialDeleteUrl_ @title FinancialDeleteUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func FinancialEditUrl_ ¶
func FinancialEditUrl_(params map[string]string) (httpResult *HttpResult, err error)
FinancialEditUrl_ @title FinancialEditUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func GroupCreateUrl_ ¶
func GroupCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
GroupCreateUrl_ @title GroupCreateUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func IdmDeviceCreate_ ¶
func IdmDeviceCreate_(params map[string]string) (httpResult *HttpResult, err error)
IdmDeviceCreate_ @title IdmDeviceCreate_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func IdmDeviceFactory_ ¶
func IdmDeviceFactory_(params map[string]string) (httpResult *HttpResult, err error)
IdmDeviceFactory_ @title IdmDeviceFactory_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func IdmDeviceIndex_ ¶
func IdmDeviceIndex_(params map[string]string) (httpResult *HttpResult, err error)
IdmDeviceIndex_ @title IdmDeviceIndex_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func IdmDeviceOs_ ¶
func IdmDeviceOs_(params map[string]string) (httpResult *HttpResult, err error)
IdmDeviceOs_ @title IdmDeviceOs_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func IdmProductIndex_ ¶
func IdmProductIndex_(params map[string]string) (httpResult *HttpResult, err error)
IdmProductIndex_ @title IdmProductIndex_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func IdmProductUpdate_ ¶
func IdmProductUpdate_(params map[string]string) (httpResult *HttpResult, err error)
IdmProductUpdate_ @title IdmProductUpdate_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func InVisitorEduroamVisitor_ ¶
func InVisitorEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
InVisitorEduroamVisitor_ @title InVisitorEduroamVisitor_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ListEduroamVisitor_ ¶
func ListEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
ListEduroamVisitor_ @title ListEduroamVisitor_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func LoginUrl_ ¶
func LoginUrl_(params map[string]string) (httpResult *HttpResult, err error)
LoginUrl_ @title LoginUrl_ @description omit @author DM @time 2021/4/2 21:09 @param params @return httpResult @return err
func MaxOnlineNumUrl_ ¶
func MaxOnlineNumUrl_(params map[string]string) (httpResult *HttpResult, err error)
MaxOnlineNumUrl_ @title MaxOnlineNumUrl_ @description omit @auth zhanglianfeng 2021-04-07 @param params map[string]string @return httpResult *HttpResult, err error
func OnlineIndexEduroam_ ¶
func OnlineIndexEduroam_(params map[string]string) (httpResult *HttpResult, err error)
OnlineIndexEduroam_ @title OnlineIndexEduroam_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func OutVisitorEduroamVisitor_ ¶
func OutVisitorEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
OutVisitorEduroamVisitor_ @title OutVisitorEduroamVisitor_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ProductCanSubscribe_ ¶
func ProductCanSubscribe_(params map[string]string) (httpResult *HttpResult, err error)
ProductCanSubscribe_ @title ProductCanSubscribe_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ProductCreateUrl_ ¶
func ProductCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
ProductCreateUrl_ @title ProductCreateUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ProductDeleteUrl_ ¶
func ProductDeleteUrl_(params map[string]string) (httpResult *HttpResult, err error)
ProductDeleteUrl_ @title ProductDeleteUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ProductModifyUrl_ ¶
func ProductModifyUrl_(params map[string]string) (httpResult *HttpResult, err error)
ProductModifyUrl_ @title ProductModifyUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ProductSubscribeUrl_ ¶
func ProductSubscribeUrl_(params map[string]string) (httpResult *HttpResult, err error)
ProductSubscribeUrl_ @title ProductSubscribeUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ProductTransferUrl_ ¶
func ProductTransferUrl_(params map[string]string) (httpResult *HttpResult, err error)
ProductTransferUrl_ @title ProductTransferUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func RechargeWallet_ ¶
func RechargeWallet_(params map[string]string) (httpResult *HttpResult, err error)
RechargeWallet_ @title RechargeWallet_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func Request ¶
func Request(api string, MethodParamsNoAccessToken ...interface{}) (httpResult *HttpResult, err error)
Request @title Request @description api string, method string, params map[string]string, noAccessToken bool @author DM @time 2021/4/2 21:00 @param api 接口 @params MethodParamsNoAccessToken @param method 请求类型 支持 get post put ... 默认get @param params 接口请求参数 map[string]string 默认不传 所有接口都支持此参数包括get @param noAccessToken false:默认,自动上传北向接口access_token true:不传access_token @return httpResult @return err
func ReservationTransferUrl_ ¶
func ReservationTransferUrl_(params map[string]string) (httpResult *HttpResult, err error)
ReservationTransferUrl_ @title ReservationTransferUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func ResetPasswordManager_ ¶
func ResetPasswordManager_(params map[string]string) (httpResult *HttpResult, err error)
ResetPasswordManager_ @title ResetPasswordManager_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func SearchEduroamSchool_ ¶
func SearchEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
SearchEduroamSchool_ @title SearchEduroamSchool_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func SearchEduroamVisitor_ ¶
func SearchEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
SearchEduroamVisitor_ @title SearchEduroamVisitor_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func SysMsg_ ¶
func SysMsg_(params map[string]string) (httpResult *HttpResult, err error)
SysMsg_ @title SysMsg_ @description omit @author FangWenQiang @time 2021/4/18 14:11 @param params @return httpResult @return err
func TopEduroamVisitor_ ¶
func TopEduroamVisitor_(params map[string]string) (httpResult *HttpResult, err error)
TopEduroamVisitor_ @title TopEduroamVisitor_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func UpdateEduroamSchool_ ¶
func UpdateEduroamSchool_(params map[string]string) (httpResult *HttpResult, err error)
UpdateEduroamSchool_ @title UpdateEduroamSchool_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func UserCreateUrl_ ¶
func UserCreateUrl_(params map[string]string) (httpResult *HttpResult, err error)
UserCreateUrl_ @title UserCreateUrl_ @description omit @author DM @time 2021/4/2 21:09 @param params @return httpResult @return err
func UserDeleteUrl_ ¶
func UserDeleteUrl_(params map[string]string) (httpResult *HttpResult, err error)
UserDeleteUrl_ @title UserDeleteUrl_ @description omit @author DM @time 2021/4/2 21:10 @param params @return httpResult @return err
func UserRestPassUrl_ ¶
func UserRestPassUrl_(params map[string]string) (httpResult *HttpResult, err error)
UserRestPassUrl_ @title UserRestPassUrl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func UserStatusControl_ ¶
func UserStatusControl_(params map[string]string) (httpResult *HttpResult, err error)
UserStatusControl_ @title UserStatusControl_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func UserUpdateUrl_ ¶
func UserUpdateUrl_(params map[string]string) (httpResult *HttpResult, err error)
UserUpdateUrl_ @title UserUpdateUrl_ @description omit @author DM @time 2021/4/2 21:10 @param params @return httpResult @return err
func UsersPackages_ ¶
func UsersPackages_(params map[string]string) (httpResult *HttpResult, err error)
UsersPackages_ @title UsersPackages_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
func VisitorEduroamDetail_ ¶
func VisitorEduroamDetail_(params map[string]string) (httpResult *HttpResult, err error)
VisitorEduroamDetail_ @title VisitorEduroamDetail_ @description omit @author DM @time 2021/4/2 21:11 @param params @return httpResult @return err
type HttpResultSso ¶
type HttpResultSso struct { ServerFlag int `json:"ServerFlag"` ServicesIntfServerIP string `json:"ServicesIntfServerIP"` ServicesIntfServerPort string `json:"ServicesIntfServerPort"` CheckoutDate int `json:"checkout_date,omitempty"` ClientIp string `json:"client_ip,omitempty"` Ecode interface{} `json:"ecode,omitempty"` Error string `json:"error,omitempty"` ErrorMsg string `json:"error_msg,omitempty"` OnlineIp string `json:"online_ip,omitempty"` RealName string `json:"real_name,omitempty"` RemainFlux int `json:"remain_flux,omitempty"` RemainTimes int `json:"remain_times,omitempty"` Res string `json:"res,omitempty"` SrunVer string `json:"srun_ver,omitempty"` SucMsg string `json:"suc_msg,omitempty"` Sysver string `json:"sysver,omitempty"` Username string `json:"username,omitempty"` WalletBalance int `json:"wallet_balance,omitempty"` PloyMsg string `json:"ploy_msg,omitempty"` }
func RequestSso ¶
func RequestSso(reqUrl string, params map[string]string) (httpResult *HttpResultSso, err error)
RequestSso 8082上的微信临时放行key(必须核实)也可在服务器文件srun4kauth.xml中ApiAuthSecret字段获得需修改EnableAPIAuth=1然后重启srun3kauth
func Sso ¶
func Sso(ssoSecret, ssoUrl, username, ip, acId, action string) (*HttpResultSso, error)
Sso 调用单点登录接口 8082上的微信临时放行key(必须核实)也可在服务器文件srun4kauth.xml中ApiAuthSecret字段获得需修改EnableAPIAuth=1然后重启srun3kauth @params action login:登录 logout:登出
type MyFormatter ¶
type MyFormatter struct{}
MyFormatter @title MyFormatter @description 自定义日志格式 @author DM @time 2021/4/20 8:37
type Northbound ¶
type Northbound struct { Protocol string `json:"Protocol,omitempty"` InterfaceIp string `json:"InterfaceIp,omitempty"` Port int `json:"Port,omitempty"` }
Northbound @description SDK配置 使用到项目中时酌情修改 @author DM @time 2022/04/17 00:11
type SsoResult ¶
type SsoResult struct { Code string `json:"code"` Message string `json:"message"` IsSuccess bool `json:"is_success"` }
func GetSsoSuccessOrError ¶
func GetSsoSuccessOrError(sso HttpResultSso) (res SsoResult)