34 lines
734 B
Go
34 lines
734 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
|
|
"mingyang-admin-app-rpc/internal/svc"
|
|
"mingyang-admin-app-rpc/types/app"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type QueryUserPagePcLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewQueryUserPagePcLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryUserPagePcLogic {
|
|
return &QueryUserPagePcLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
// QueryUserPagePc C端用户分页查询
|
|
func (l *QueryUserPagePcLogic) QueryUserPagePc(in *app.PageUserRequest) (*app.PageUserResponse, error) {
|
|
users, err := NewListUsersLogic(l.ctx, l.svcCtx).ListUsers(in)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return users, nil
|
|
}
|