render

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package render @Author: asus @Description: $ @File: category_render @Data: 2022/2/2816:48

Package render @Author: asus @Description: $ @File: response @Data: 2022/2/2818:27

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	ID           uint           `json:"id,omitempty" example:"1"`
	CreatedAt    uint32         `json:"createdAt,omitempty" example:"1646036184"`
	UpdatedAt    uint32         `json:"updatedAt,omitempty" example:"1646036184"`
	DeletedAt    gorm.DeletedAt `json:"deletedAt,omitempty" swaggertype:"string" example:"2022-02-01 16:51:21"`
	Path         string         `json:"path,omitempty" example:"-"`
	CategoryName string         `json:"categoryName,omitempty" example:"一级分类"`
	CategoryImg  string         `json:"categoryImg,omitempty" example:"http://test/image/1.jpg"`
	IsFinal      bool           `json:"isFinal,omitempty" example:"false"`
	Sort         uint           `json:"sort,omitempty" example:"0"`
	CategoryID   uint           `json:"categoryID,omitempty" example:"0"`
	Level        uint           `json:"level,omitempty" example:"1"`
}

type ResList added in v0.9.3

type ResList struct {
	List  []interface{}
	Total int
}

type Response

type Response struct {
	Code int
	Msg  string
	Data interface{}
}

Jump to

Keyboard shortcuts

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