Merge branch 'master' of git.oa00.com:supply-chain/service

finance
杨赟 2 years ago
commit b4750f930c

@ -0,0 +1,7 @@
package customer
type serviceId uint
const (
ServiceSupply serviceId = 1 // 供应链
)

@ -101,3 +101,19 @@ func (u *user) Disable(ctx context.Context, userId uint) error {
reply := 0 reply := 0
return client.GetClient(u).Call(ctx, "Disable", userId, &reply) return client.GetClient(u).Call(ctx, "Disable", userId, &reply)
} }
type ArgsUserServiceInfo struct {
ServiceId serviceId // 服务id
AppKey string // 渠道appKey
}
type ReplyUserServiceInfo struct {
CustomerId uint `json:"customerId"`
AppSecret string `json:"appSecret"`
ExpirationAt int64 `json:"expirationAt"`
}
// ServiceInfo @Title 获取服务信息
func (u *user) ServiceInfo(ctx context.Context, args ArgsUserServiceInfo) (reply ReplyUserServiceInfo, err error) {
err = client.GetClient(u).Call(ctx, "ServiceInfo", args, &reply)
return
}

Loading…
Cancel
Save