types

package
v0.0.0-...-861475b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct {
}

type GeneralPathId

type GeneralPathId struct {
	Id int64 `path:"id,range=[1:]"`
}

type LoginReq

type LoginReq struct {
	Mobile    string `json:"mobile"`                 // 账号
	Password  string `json:"password,optional"`      // 账户密码
	Code      string `json:"code,optional"`          // 手机验证码
	LoginType int64  `json:"login_type,range=[1:7]"` // 登录类型:1=验证码、2=密码、3=支付宝、4=淘宝、5=微信、6=新浪、7=QQ
}

type LoginResp

type LoginResp struct {
	ID       int64  `json:"id"`        // 用户ID
	Name     string `json:"name"`      // 用户名
	Token    string `json:"token"`     // Jwt Token
	ExpireAt int64  `json:"expire_at"` // 认证过期时间
}

type Order

type Order struct {
	Id         int64  `json:"id"`         // 用户ID
	Name       string `json:"name"`       // 姓名
	Nickname   string `json:"nickname"`   // 昵称
	Avatar     string `json:"avatar"`     // 头像
	Background string `json:"background"` // 个人中心背景图
	Mobile     string `json:"mobile"`     // 手机号
	Password   string `json:"password"`   // 密码
	Mail       string `json:"mail"`       // 邮箱地址
	Identity   string `json:"identity"`   // 身份证号
	Gender     int64  `json:"gender"`     // 性别: 0=未指定、1=男、2=女、3=第三性别、4=保密: 默认=4
	Nation     string `json:"nation"`     // 民族
	Birthday   int64  `json:"birthday"`   // 出生日期
	Address    string `json:"address"`    // 收货地址
	Audience   string `json:"audience"`   // 观影人信息,格式:[{"name":"xxx","identity_type": 1,"identity_number"}],identity 可选值:1=身份证、2=港澳台居民居住证、3=港澳居民来往内地通行证、4=台湾居民来往大陆通行证、5=护照、6=外国人永久居留身份证
	Status     int64  `json:"status"`     // 是否禁用: 0=未指定、1=开启、2=禁用: 默认=1
	LoginAt    int64  `json:"login_at"`   // 登录时间
	CreatedAt  int64  `json:"created_at"` // 创建时间
	UpdatedAt  int64  `json:"updated_at"` // 更新时间
	IsDel      int64  `json:"is_del"`     // 是否删除: 0=未指定、1=是、2=否: 默认=2
}

type OrderAddReq

type OrderAddReq struct {
	GeneralPathId
	Id         int64  `json:"id,optional"`         // 用户ID
	Name       string `json:"name,optional"`       // 姓名
	Nickname   string `json:"nickname,optional"`   // 昵称
	Avatar     string `json:"avatar,optional"`     // 头像
	Background string `json:"background,optional"` // 个人中心背景图
	Mobile     string `json:"mobile,optional"`     // 手机号
	Password   string `json:"password,optional"`   // 密码
	Mail       string `json:"mail,optional"`       // 邮箱地址
	Identity   string `json:"identity,optional"`   // 身份证号
	Gender     int64  `json:"gender,optional"`     // 性别: 0=未指定、1=男、2=女、3=第三性别、4=保密: 默认=4
	Nation     string `json:"nation,optional"`     // 民族
	Birthday   int64  `json:"birthday,optional"`   // 出生日期
	Address    string `json:"address,optional"`    // 收货地址
	Audience   string `json:"audience,optional"`   // 观影人信息,格式:[{"name":"xxx","identity_type": 1,"identity_number"}],identity 可选值:1=身份证、2=港澳台居民居住证、3=港澳居民来往内地通行证、4=台湾居民来往大陆通行证、5=护照、6=外国人永久居留身份证
	Status     int64  `json:"status,optional"`     // 是否禁用: 0=未指定、1=开启、2=禁用: 默认=1
	LoginAt    int64  `json:"login_at,optional"`   // 登录时间
}

type OrderAddResp

type OrderAddResp struct {
	Id int64 `json:"id"` // ID
}

type OrderRetrieveReq

type OrderRetrieveReq struct {
	Paging
}

type OrderRetrieveResp

type OrderRetrieveResp struct {
	Total int64    `json:"total"` // 总数
	Data  []*Order `json:"data"`  // 数据列表
}

type OrderUpdateReq

type OrderUpdateReq struct {
	Id         int64  `json:"id,optional"`         // 用户ID
	Name       string `json:"name,optional"`       // 姓名
	Nickname   string `json:"nickname,optional"`   // 昵称
	Avatar     string `json:"avatar,optional"`     // 头像
	Background string `json:"background,optional"` // 个人中心背景图
	Mobile     string `json:"mobile,optional"`     // 手机号
	Password   string `json:"password,optional"`   // 密码
	Mail       string `json:"mail,optional"`       // 邮箱地址
	Identity   string `json:"identity,optional"`   // 身份证号
	Gender     int64  `json:"gender,optional"`     // 性别: 0=未指定、1=男、2=女、3=第三性别、4=保密: 默认=4
	Nation     string `json:"nation,optional"`     // 民族
	Birthday   int64  `json:"birthday,optional"`   // 出生日期
	Address    string `json:"address,optional"`    // 收货地址
	Audience   string `json:"audience,optional"`   // 观影人信息,格式:[{"name":"xxx","identity_type": 1,"identity_number"}],identity 可选值:1=身份证、2=港澳台居民居住证、3=港澳居民来往内地通行证、4=台湾居民来往大陆通行证、5=护照、6=外国人永久居留身份证
	Status     int64  `json:"status,optional"`     // 是否禁用: 0=未指定、1=开启、2=禁用: 默认=1
	LoginAt    int64  `json:"login_at,optional"`   // 登录时间
}

type Paging

type Paging struct {
	Page     int64  `form:"page,range=[0:],default=1"`
	PageSize int64  `form:"page_size,range=[0:],default=10"`
	Filter   string `form:"filter,optional"`
	Sort     string `form:"sort,optional"`
}

type Performance

type Performance struct {
	Id             int64  `json:"id"`               // ID
	Title          string `json:"title"`            // 标题
	Description    string `json:"description"`      // 描述
	City           string `json:"city"`             // 所在城市
	Address        string `json:"address"`          // 具体地址
	PrioritySaleAt int64  `json:"priority_sale_at"` // 优先购开售时间
	SaleAt         int64  `json:"sale_at"`          // 开售时间
	CreatedAt      int64  `json:"created_at"`       // 创建时间
	UpdatedAt      int64  `json:"updated_at"`       // 更新时间
	IsDel          int64  `json:"is_del"`           // 是否删除: 0=未指定、1=是、2=否: 默认=2
}

type PerformanceAddReq

type PerformanceAddReq struct {
	GeneralPathId
	Id             int64  `json:"id,optional"`               // ID
	Title          string `json:"title,optional"`            // 标题
	Description    string `json:"description,optional"`      // 描述
	City           string `json:"city,optional"`             // 所在城市
	Address        string `json:"address,optional"`          // 具体地址
	PrioritySaleAt int64  `json:"priority_sale_at,optional"` // 优先购开售时间
	SaleAt         int64  `json:"sale_at,optional"`          // 开售时间
}

type PerformanceAddResp

type PerformanceAddResp struct {
	Id int64 `json:"id"` // ID
}

type PerformanceRetrieveReq

type PerformanceRetrieveReq struct {
	Paging
}

type PerformanceRetrieveResp

type PerformanceRetrieveResp struct {
	Total int64          `json:"total"` // 总数
	Data  []*Performance `json:"data"`  // 数据列表
}

type PerformanceSeat

type PerformanceSeat struct {
	Id        int64  `json:"id"`         // ID
	SessionId int64  `json:"session_id"` // 关联的演出场次ID
	Seat      string `json:"seat"`       // 席位,对应演出活动场次表中的席位
	Row       int64  `json:"row"`        // 座位所在行
	Col       int64  `json:"col"`        // 座位所在列
	Status    int64  `json:"status"`     // 预定状态:1=已预定、2=未预定:默认=2
	CreatedAt int64  `json:"created_at"` // 创建时间
	UpdatedAt int64  `json:"updated_at"` // 更新时间
	IsDel     int64  `json:"is_del"`     // 是否删除: 0=未指定、1=是、2=否: 默认=2
}

type PerformanceSeatAddReq

type PerformanceSeatAddReq struct {
	GeneralPathId
	Id        int64  `json:"id,optional"`         // ID
	SessionId int64  `json:"session_id,optional"` // 关联的演出场次ID
	Seat      string `json:"seat,optional"`       // 席位,对应演出活动场次表中的席位
	Row       int64  `json:"row,optional"`        // 座位所在行
	Col       int64  `json:"col,optional"`        // 座位所在列
	Status    int64  `json:"status,optional"`     // 预定状态:1=已预定、2=未预定:默认=2
}

type PerformanceSeatAddResp

type PerformanceSeatAddResp struct {
	Id int64 `json:"id"` // ID
}

type PerformanceSeatRetrieveReq

type PerformanceSeatRetrieveReq struct {
	Paging
}

type PerformanceSeatRetrieveResp

type PerformanceSeatRetrieveResp struct {
	Total int64              `json:"total"` // 总数
	Data  []*PerformanceSeat `json:"data"`  // 数据列表
}

type PerformanceSeatUpdateReq

type PerformanceSeatUpdateReq struct {
	Id        int64  `json:"id,optional"`         // ID
	SessionId int64  `json:"session_id,optional"` // 关联的演出场次ID
	Seat      string `json:"seat,optional"`       // 席位,对应演出活动场次表中的席位
	Row       int64  `json:"row,optional"`        // 座位所在行
	Col       int64  `json:"col,optional"`        // 座位所在列
	Status    int64  `json:"status,optional"`     // 预定状态:1=已预定、2=未预定:默认=2
}

type PerformanceSession

type PerformanceSession struct {
	Id            int64  `json:"id"`             // ID
	PerformanceId int64  `json:"performance_id"` // 关联的演出活动ID
	Tickets       string `json:"tickets"`        // 规格票数,格式为:[{"seat": "vip","price": 2023,"quantity": 2000}]。seat: 席位、price: 票价、quantity: 数量。
	ShowAt        int64  `json:"show_at"`        // 演出时间
	CreatedAt     int64  `json:"created_at"`     // 创建时间
	UpdatedAt     int64  `json:"updated_at"`     // 更新时间
	IsDel         int64  `json:"is_del"`         // 是否删除: 0=未指定、1=是、2=否: 默认=2
}

type PerformanceSessionAddReq

type PerformanceSessionAddReq struct {
	GeneralPathId
	Id            int64  `json:"id,optional"`             // ID
	PerformanceId int64  `json:"performance_id,optional"` // 关联的演出活动ID
	Tickets       string `json:"tickets,optional"`        // 规格票数,格式为:[{"seat": "vip","price": 2023,"quantity": 2000}]。seat: 席位、price: 票价、quantity: 数量。
	ShowAt        int64  `json:"show_at,optional"`        // 演出时间
}

type PerformanceSessionAddResp

type PerformanceSessionAddResp struct {
	Id int64 `json:"id"` // ID
}

type PerformanceSessionRetrieveReq

type PerformanceSessionRetrieveReq struct {
	Paging
}

type PerformanceSessionRetrieveResp

type PerformanceSessionRetrieveResp struct {
	Total int64                 `json:"total"` // 总数
	Data  []*PerformanceSession `json:"data"`  // 数据列表
}

type PerformanceSessionUpdateReq

type PerformanceSessionUpdateReq struct {
	Id            int64  `json:"id,optional"`             // ID
	PerformanceId int64  `json:"performance_id,optional"` // 关联的演出活动ID
	Tickets       string `json:"tickets,optional"`        // 规格票数,格式为:[{"seat": "vip","price": 2023,"quantity": 2000}]。seat: 席位、price: 票价、quantity: 数量。
	ShowAt        int64  `json:"show_at,optional"`        // 演出时间
}

type PerformanceUpdateReq

type PerformanceUpdateReq struct {
	Id             int64  `json:"id,optional"`               // ID
	Title          string `json:"title,optional"`            // 标题
	Description    string `json:"description,optional"`      // 描述
	City           string `json:"city,optional"`             // 所在城市
	Address        string `json:"address,optional"`          // 具体地址
	PrioritySaleAt int64  `json:"priority_sale_at,optional"` // 优先购开售时间
	SaleAt         int64  `json:"sale_at,optional"`          // 开售时间
}

type User

type User struct {
	Id         int64  `json:"id"`         // 用户ID
	Name       string `json:"name"`       // 姓名
	Nickname   string `json:"nickname"`   // 昵称
	Avatar     string `json:"avatar"`     // 头像
	Background string `json:"background"` // 个人中心背景图
	Mobile     string `json:"mobile"`     // 手机号
	Password   string `json:"password"`   // 密码
	Mail       string `json:"mail"`       // 邮箱地址
	Identity   string `json:"identity"`   // 身份证号
	Gender     int64  `json:"gender"`     // 性别: 0=未指定、1=男、2=女、3=第三性别、4=保密: 默认=4
	Nation     string `json:"nation"`     // 民族
	Birthday   int64  `json:"birthday"`   // 出生日期
	Address    string `json:"address"`    // 收货地址
	Audience   string `json:"audience"`   // 观影人信息,格式:[{"name":"xxx","identity_type": 1,"identity_number"}],identity 可选值:1=身份证、2=港澳台居民居住证、3=港澳居民来往内地通行证、4=台湾居民来往大陆通行证、5=护照、6=外国人永久居留身份证
	Status     int64  `json:"status"`     // 是否禁用: 0=未指定、1=开启、2=禁用: 默认=1
	LoginAt    int64  `json:"login_at"`   // 登录时间
	CreatedAt  int64  `json:"created_at"` // 创建时间
	UpdatedAt  int64  `json:"updated_at"` // 更新时间
	IsDel      int64  `json:"is_del"`     // 是否删除: 0=未指定、1=是、2=否: 默认=2
}

type UserAddReq

type UserAddReq struct {
	GeneralPathId
	Id         int64  `json:"id,optional"`         // 用户ID
	Name       string `json:"name,optional"`       // 姓名
	Nickname   string `json:"nickname,optional"`   // 昵称
	Avatar     string `json:"avatar,optional"`     // 头像
	Background string `json:"background,optional"` // 个人中心背景图
	Mobile     string `json:"mobile,optional"`     // 手机号
	Password   string `json:"password,optional"`   // 密码
	Mail       string `json:"mail,optional"`       // 邮箱地址
	Identity   string `json:"identity,optional"`   // 身份证号
	Gender     int64  `json:"gender,optional"`     // 性别: 0=未指定、1=男、2=女、3=第三性别、4=保密: 默认=4
	Nation     string `json:"nation,optional"`     // 民族
	Birthday   int64  `json:"birthday,optional"`   // 出生日期
	Address    string `json:"address,optional"`    // 收货地址
	Audience   string `json:"audience,optional"`   // 观影人信息,格式:[{"name":"xxx","identity_type": 1,"identity_number"}],identity 可选值:1=身份证、2=港澳台居民居住证、3=港澳居民来往内地通行证、4=台湾居民来往大陆通行证、5=护照、6=外国人永久居留身份证
	Status     int64  `json:"status,optional"`     // 是否禁用: 0=未指定、1=开启、2=禁用: 默认=1
	LoginAt    int64  `json:"login_at,optional"`   // 登录时间
}

type UserAddResp

type UserAddResp struct {
	Id int64 `json:"id"` // ID
}

type UserRetrieveReq

type UserRetrieveReq struct {
	Paging
}

type UserRetrieveResp

type UserRetrieveResp struct {
	Total int64   `json:"total"` // 总数
	Data  []*User `json:"data"`  // 数据列表
}

type UserUpdateReq

type UserUpdateReq struct {
	Id         int64  `json:"id,optional"`         // 用户ID
	Name       string `json:"name,optional"`       // 姓名
	Nickname   string `json:"nickname,optional"`   // 昵称
	Avatar     string `json:"avatar,optional"`     // 头像
	Background string `json:"background,optional"` // 个人中心背景图
	Mobile     string `json:"mobile,optional"`     // 手机号
	Password   string `json:"password,optional"`   // 密码
	Mail       string `json:"mail,optional"`       // 邮箱地址
	Identity   string `json:"identity,optional"`   // 身份证号
	Gender     int64  `json:"gender,optional"`     // 性别: 0=未指定、1=男、2=女、3=第三性别、4=保密: 默认=4
	Nation     string `json:"nation,optional"`     // 民族
	Birthday   int64  `json:"birthday,optional"`   // 出生日期
	Address    string `json:"address,optional"`    // 收货地址
	Audience   string `json:"audience,optional"`   // 观影人信息,格式:[{"name":"xxx","identity_type": 1,"identity_number"}],identity 可选值:1=身份证、2=港澳台居民居住证、3=港澳居民来往内地通行证、4=台湾居民来往大陆通行证、5=护照、6=外国人永久居留身份证
	Status     int64  `json:"status,optional"`     // 是否禁用: 0=未指定、1=开启、2=禁用: 默认=1
	LoginAt    int64  `json:"login_at,optional"`   // 登录时间
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL