feat: add member URL pool and login tracking
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package appmemberloginlog
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/appMemberLoginLog/list" method:"get" tags:"会员登录日志" summary:"获取会员登录日志列表"`
|
||||
sysin.AppMemberLoginLogListInp
|
||||
}
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.AppMemberLoginLogListModel `json:"list"`
|
||||
}
|
||||
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/appMemberLoginLog/view" method:"get" tags:"会员登录日志" summary:"获取会员登录日志详情"`
|
||||
sysin.AppMemberLoginLogViewInp
|
||||
}
|
||||
type ViewRes struct {
|
||||
*sysin.AppMemberLoginLogViewModel
|
||||
}
|
||||
|
||||
type ExportReq struct {
|
||||
g.Meta `path:"/appMemberLoginLog/export" method:"get" tags:"会员登录日志" summary:"导出会员登录日志"`
|
||||
sysin.AppMemberLoginLogListInp
|
||||
}
|
||||
type ExportRes struct{}
|
||||
@@ -0,0 +1,57 @@
|
||||
package urlpool
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/urlPool/list" method:"get" tags:"URL地址池" summary:"获取URL地址池列表"`
|
||||
sysin.UrlPoolListInp
|
||||
}
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.UrlPoolListModel `json:"list"`
|
||||
}
|
||||
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/urlPool/view" method:"get" tags:"URL地址池" summary:"获取URL地址详情"`
|
||||
sysin.UrlPoolViewInp
|
||||
}
|
||||
type ViewRes struct{ *sysin.UrlPoolViewModel }
|
||||
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/urlPool/edit" method:"post" tags:"URL地址池" summary:"新增或编辑URL地址"`
|
||||
sysin.UrlPoolEditInp
|
||||
}
|
||||
type EditRes struct{}
|
||||
|
||||
type StatusReq struct {
|
||||
g.Meta `path:"/urlPool/status" method:"post" tags:"URL地址池" summary:"切换URL地址状态"`
|
||||
sysin.UrlPoolStatusInp
|
||||
}
|
||||
type StatusRes struct{}
|
||||
|
||||
type ImportReq struct {
|
||||
g.Meta `path:"/urlPool/import" method:"post" mime:"multipart/form-data" tags:"URL地址池" summary:"Excel批量导入URL地址"`
|
||||
File *ghttp.UploadFile `json:"file" type:"file" v:"required#请选择Excel文件" dc:"Excel文件"`
|
||||
}
|
||||
type ImportRes struct{ *sysin.UrlPoolImportModel }
|
||||
|
||||
type MemberListReq struct {
|
||||
g.Meta `path:"/urlPool/memberList" method:"get" tags:"URL地址池" summary:"获取地址绑定会员"`
|
||||
sysin.UrlPoolMemberListInp
|
||||
}
|
||||
type MemberListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.UrlPoolMemberListModel `json:"list"`
|
||||
}
|
||||
|
||||
type SummaryReq struct {
|
||||
g.Meta `path:"/urlPool/summary" method:"get" tags:"URL地址池" summary:"获取URL地址池汇总"`
|
||||
sysin.UrlPoolSummaryInp
|
||||
}
|
||||
type SummaryRes struct{ *sysin.UrlPoolSummaryModel }
|
||||
@@ -12,4 +12,7 @@ import (
|
||||
|
||||
type IMemberV1 interface {
|
||||
GetIdByCode(ctx context.Context, req *v1.GetIdByCodeReq) (res *v1.GetIdByCodeRes, err error)
|
||||
Register(ctx context.Context, req *v1.RegisterReq) (res *v1.RegisterRes, err error)
|
||||
AccountLogin(ctx context.Context, req *v1.AccountLoginReq) (res *v1.AccountLoginRes, err error)
|
||||
MobileLogin(ctx context.Context, req *v1.MobileLoginReq) (res *v1.MobileLoginRes, err error)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"hotgo/internal/model/input/sysin"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type RegisterReq struct {
|
||||
g.Meta `path:"/member/register" method:"post" tags:"会员认证" summary:"C端会员注册"`
|
||||
sysin.AppMemberRegisterInp
|
||||
}
|
||||
type RegisterRes struct{ *sysin.AppMemberRegisterModel }
|
||||
|
||||
type AccountLoginReq struct {
|
||||
g.Meta `path:"/member/accountLogin" method:"post" tags:"会员认证" summary:"C端会员账号密码登录"`
|
||||
sysin.AppMemberAccountLoginInp
|
||||
}
|
||||
type AccountLoginRes struct{ *sysin.AppMemberLoginModel }
|
||||
|
||||
type MobileLoginReq struct {
|
||||
g.Meta `path:"/member/mobileLogin" method:"post" tags:"会员认证" summary:"C端会员手机验证码登录"`
|
||||
sysin.AppMemberMobileLoginInp
|
||||
}
|
||||
type MobileLoginRes struct{ *sysin.AppMemberLoginModel }
|
||||
Reference in New Issue
Block a user