dept

package
v0.0.0-...-bcd2c7c Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDeptRequest

type CreateDeptRequest struct {
	DeptName string `json:"dept_name" form:"dept_name" binding:"required"`
	ParentID string `json:"parent_id" form:"parent_id" binding:"required"`
}

type CreateDeptResponse

type CreateDeptResponse struct {
	DeptID   string `json:"dept_id"`
	DeptName string `json:"dept_name"`
}

type DeleteDeptRequest

type DeleteDeptRequest struct {
	DeptID string `json:"dept_id" uri:"dept_id" binding:"required"`
}

type DeleteDeptResponse

type DeleteDeptResponse struct {
	Result string `json:"result"`
}

type GetDeptRequest

type GetDeptRequest struct {
	DeptID string `json:"dept_id" uri:"dept_id" binding:"required"`
}

type GetDeptResponse

type GetDeptResponse dept.Dept

type ListDeptRequest

type ListDeptRequest struct {
	Offset *int `json:"offset" form:"offset" binding:"required"`
	Limit  int  `json:"limit" form:"limit" binding:"required"`
}

type ListDeptResponse

type ListDeptResponse struct {
	Dept   []*dept.Dept
	Length int
}

type UpdateDeptRequest

type UpdateDeptRequest dept.Dept

type UpdateDeptResponse

type UpdateDeptResponse struct {
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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