v1

package
v0.0.0-...-00b4b05 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMemberReq

type AddMemberReq struct {
	Id      int64 `json:"id" v:"required#组ID不能为空" dc:"组ID"`
	g.Meta  `path:"/group/{Id}/members" method:"put" tags:"Group" summary:"添加组成员"`
	UserIds []int64 `json:"userIds" v:"required#用户ID不能为空" dc:"用户ID"`
}

type AddMemberRes

type AddMemberRes struct {
}

type DeleteReq

type DeleteReq struct {
	Id     int64 `json:"id" v:"required#组ID不能为空" dc:"组ID"`
	g.Meta `path:"/group/{Id}" method:"delete" tags:"Group" summary:"删除组"`
}

type DeleteRes

type DeleteRes struct {
}

type GetReq

type GetReq struct {
	Id     int64 `json:"id" v:"required#组ID不能为空" dc:"组ID"`
	g.Meta `path:"/group/{Id}" method:"get" tags:"Group" summary:"获取组信息"`
}

type GetRes

type GetRes struct {
	g.Meta `mime:"application/json" type:"object" example:"model.Group"`
	entity.Groups
}

type ListReq

type ListReq struct {
	g.Meta `path:"/group/list" method:"post" tags:"Group" summary:"获取组列表"`
	model.PageReq
}

type ListRes

type ListRes struct {
	g.Meta `mime:"application/json" type:"object" example:"model.PageRes"`
	model.PageRes
}

type MembersReq

type MembersReq struct {
	Id     int64 `json:"id" v:"required#组ID不能为空" dc:"组ID"`
	g.Meta `path:"/group/{Id}/members" method:"post" tags:"Group" summary:"获取组成员"`
	model.PageReq
}

type MembersRes

type MembersRes struct {
	g.Meta `mime:"application/json" type:"object" example:"model.PageRes"`
	model.PageRes
}

type RemoveMemberReq

type RemoveMemberReq struct {
	Id      int64 `json:"id" v:"required#组ID不能为空" dc:"组ID"`
	g.Meta  `path:"/group/{Id}/members" method:"delete" tags:"Group" summary:"删除组成员"`
	UserIds []int64 `json:"userIds" v:"required#用户ID不能为空" dc:"用户ID"`
}

type RemoveMemberRes

type RemoveMemberRes struct {
}

type SaveReq

type SaveReq struct {
	g.Meta `path:"/group/" method:"put" tags:"Group" summary:"新增或更新组"`
	entity.Groups
}

type SaveRes

type SaveRes struct {
}

Jump to

Keyboard shortcuts

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