Documentation ¶
Overview ¶
* @Author: tj * @Date: 2022-11-07 14:08:27 * @LastEditors: tj * @LastEditTime: 2022-12-09 15:06:23 * @FilePath: \createApiMarkdown\gindemo\data.go
* @Author: tj * @Date: 2022-11-03 18:59:04 * @LastEditors: tj * @LastEditTime: 2022-12-02 10:41:46 * @FilePath: \createApiMarkdown\gindemo\doc.go
* @Author: tj * @Date: 2022-11-07 14:10:26 * @LastEditors: tj * @LastEditTime: 2022-12-02 10:41:01 * @FilePath: \createApiMarkdown\gindemo\gindemo.go
* @Author: tj * @Date: 2022-11-02 17:40:48 * @LastEditors: tj * @LastEditTime: 2022-12-15 09:50:22 * @FilePath: \createApiMarkdown\gindemo\register.go
* @Author: tj * @Date: 2022-11-03 10:30:39 * @LastEditors: tj * @LastEditTime: 2022-12-15 09:50:42 * @FilePath: \createApiMarkdown\gindemo\route.go
* @Author: tj * @Date: 2022-11-02 17:43:17 * @LastEditors: tj * @LastEditTime: 2022-12-19 11:04:04 * @FilePath: \createApiMarkdown\gindemo\route_activity.go
* @Author: tj * @Date: 2022-11-02 16:47:20 * @LastEditors: tj * @LastEditTime: 2022-12-19 11:03:51 * @FilePath: \createApiMarkdown\gindemo\route_api.go
Index ¶
- Variables
- func AutoBindWrap(ctrFunc interface{}) gin.HandlerFunc
- func GinDemo()
- type Activity
- func (a *Activity) Add(req *AddActivityRequest, c *gin.Context)
- func (a *Activity) Close(req *CloseActivityRequest, c *gin.Context)
- func (a *Activity) Info(req *GetActivityRequest, c *gin.Context) (rsp *GetActivityResponse)
- func (a *Activity) List(req *ActivityListRequest, c *gin.Context) (rsp *ActivityListResponse)
- func (a *Activity) Update(req *UpdateActivityRequest, c *gin.Context)
- type ActivityListDetail
- type ActivityListRequest
- type ActivityListResponse
- type AddActivityRequest
- type Api
- type CloseActivityRequest
- type GetActivityRequest
- type GetActivityResponse
- type GoodName
- type Result
- type Route
- type UpdateActivityRequest
Constants ¶
This section is empty.
Variables ¶
var (
HasLogin bool = false
)
var ( // 所有路由详情 Routes []Route )
Functions ¶
func AutoBindWrap ¶
func AutoBindWrap(ctrFunc interface{}) gin.HandlerFunc
Types ¶
type Activity ¶
type Activity struct { }
func NewActivity ¶
func NewActivity() *Activity
func (*Activity) Info ¶
func (a *Activity) Info(req *GetActivityRequest, c *gin.Context) (rsp *GetActivityResponse)
func (*Activity) List ¶
func (a *Activity) List(req *ActivityListRequest, c *gin.Context) (rsp *ActivityListResponse)
type ActivityListDetail ¶
type ActivityListDetail struct { Aid uint64 `json:"aid" validate:"required,活动id"` TitleName string `json:"titleName" validate:"required,活动标题"` StartTime string `json:"startTime" validate:"required,活动开始时间"` EndTime string `json:"endTime" validate:"required,活动结束时间"` Status uint8 `json:"status" validate:"required,活动状态"` }
type ActivityListRequest ¶
type ActivityListRequest struct { Details []ActivityListDetail `json:"details" validate:"required,活动详情列表"` Page int `json:"page" validate:"required,页码"` Status int `json:"status" validate:"required,活动状态: -1:表示查全部;1-准备;2-关闭,oneof=-1 1 2"` }
type ActivityListResponse ¶
type ActivityListResponse struct { TotalCount int64 `json:"totalCount" validate:"required,总数"` Details []ActivityListDetail `json:"details" validate:"required,活动详情列表"` Goods []GoodName `json:"goods" validate:"required,商品详情列表"` }
type AddActivityRequest ¶
type AddActivityRequest struct { }
type CloseActivityRequest ¶
type CloseActivityRequest struct { }
type GetActivityRequest ¶
type GetActivityRequest struct { }
type GetActivityResponse ¶
type GetActivityResponse struct { }
type UpdateActivityRequest ¶
type UpdateActivityRequest struct { }