Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DemoApi ¶
type DemoApi struct{}
func (*DemoApi) Demo ¶
Demo godoc @Summary 获取所有学生 @Description 获取所有学生 @Produce json @Tags demo @Success 200 array []UserDTO @Router /demo/demo [get]
type User ¶ added in v1.0.0
type User struct { ID uint Name string Email *string Age uint8 Birthday *time.Time MemberNumber sql.NullString ActivatedAt sql.NullTime CreatedAt time.Time UpdatedAt time.Time }
User is gorm model
type UserDTO ¶
func StudentsToUserDTOs ¶
func StudentsToUserDTOs(students []demoService.Student) []UserDTO
Click to show internal directories.
Click to hide internal directories.