@@ -61,6 +61,8 @@ type (
// 租户id
OrganizationId *uint64 `json:"organizationId,optional"`
+
+ Wxid *string `json:"wxid,optional"`
}
WxResp {
@@ -79,6 +79,9 @@ func (l *GetWxsLogic) GetWxs(req *types.WxReq) (resp *types.WxResp, err error) {
if organizationId != 0 {
predicates = append(predicates, wx.OrganizationID(organizationId))
+ if req.Wxid != nil {
+ predicates = append(predicates, wx.Wxid(*req.Wxid))
+ }
wxs, err := l.svcCtx.DB.Wx.Query().Where(predicates...).All(l.ctx)
if err != nil {
@@ -2988,6 +2988,7 @@ type WxReq struct {
EndDate *string `json:"end_date"`
// swagger:model WxResp