123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- import "../base.api"
- type (
-
- WxCardInfo {
- BaseIDInfo
-
- UserId *uint64 `json:"userId,optional"`
-
- WxUserId *uint64 `json:"wxUserId,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Logo *string `json:"logo,optional"`
-
- Name *string `json:"name,optional"`
-
- Company *string `json:"company,optional"`
-
- Address *string `json:"address,optional"`
-
- Phone *string `json:"phone,optional"`
-
- OfficialAccount *string `json:"officialAccount,optional"`
-
- WechatAccount *string `json:"wechatAccount,optional"`
-
- Email *string `json:"email,optional"`
-
- ApiBase *string `json:"apiBase,optional"`
- ApiKey *string `json:"apiKey,optional"`
-
- AiInfo *string `json:"aiInfo,optional"`
-
- Intro *string `json:"intro,optional"`
-
- ShowChat *bool `json:"showChat,optional"`
- ShowAi *bool `json:"showAi,optional"`
- IsVip *bool `json:"isVip,optional"`
- }
- WxCardSimpleInfo {
- ID *uint64 `json:"id,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Name *string `json:"name,optional"`
- Type *string `json:"type,optional"`
- }
-
- WxCardListResp {
- BaseDataInfo
-
- Data WxCardListInfo `json:"data"`
- }
-
- WxCardListInfo {
- BaseListInfo
-
- Data []WxCardInfo `json:"data"`
- }
-
- WxCardListReq {
- PageInfo
-
- Avatar *string `json:"avatar,optional"`
-
- Logo *string `json:"logo,optional"`
-
- Name *string `json:"name,optional"`
- }
-
- WxCardInfoResp {
- BaseDataInfo
-
- Data WxCardInfo `json:"data"`
- }
- QrcodeReq {
- Path string `form:"path"`
- Width int64 `form:"width"`
- EnvVersion string `form:"envVersion"`
- }
- )
- @server(
- jwt: Auth
- group: wxcard
- middleware: Miniprogram
- )
- service Wechat {
-
- @handler getApiWxCardDetail
- post /api/card/detail (IDReq) returns (WxCardInfoResp)
- }
- @server(
- group: wxcard
- )
- service Wechat {
-
- @handler getApiWxCardQrcode
- get /api/card/qrcode (QrcodeReq)
- }
- @server(
- jwt: Auth
- group: wxcard
- middleware: Authority
- )
- service Wechat {
-
- @handler createWxCard
- post /wx_card/create (WxCardInfo) returns (BaseMsgResp)
-
- @handler updateWxCard
- post /wx_card/update (WxCardInfo) returns (BaseMsgResp)
-
- @handler deleteWxCard
- post /wx_card/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getWxCardList
- post /wx_card/list (WxCardListReq) returns (WxCardListResp)
-
- @handler getWxCardById
- post /wx_card (IDReq) returns (WxCardInfoResp)
- }
|