account.go 448 B

1234567891011121314151617
  1. package v1
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. "github.com/gogf/gf/v2/os/gtime"
  5. )
  6. type InfoReq struct {
  7. g.Meta `path:"/account/info" method:"get" sm:"获取账户信息" tags:"账户"`
  8. }
  9. type InfoRes struct {
  10. Username string `json:"username" dc:"用户名"`
  11. Email string `json:"email" dc:"邮箱"`
  12. CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
  13. UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
  14. }