123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- package v1
- import (
- "property-applete-gateway/param/base"
- "property-applete-gateway/pb/v1"
- )
- type UserAddBody struct {
- UserName string `form:"user_name" json:"user_name"`
- Password string `form:"password" json:"password"`
- Email string `form:"email" json:"email"`
- Phone string `form:"phone" json:"phone"`
- GroupId int64 `form:"group_id" json:"group_id"`
- DepartmentId int64 `form:"department_id" json:"department_id"`
- RealName string `form:"real_name" json:"real_name"`
- }
- type UserAddRequest struct {
- base.Header
- UserAddBody
- }
- type UserAddResponse struct {
- base.Result
- Data v1.UserAddReply `json:"data"`
- }
- type UserUpdateBody struct {
- UserName string `form:"user_name" json:"user_name"`
- Password string `form:"password" json:"password"`
- Email string `form:"email" json:"email"`
- Phone string `form:"phone" json:"phone"`
- GroupId int64 `form:"group_id" json:"group_id"`
- Id int64 `form:"id"`
- DepartmentId int64 `form:"department_id" json:"department_id"`
- RealName string `form:"real_name" json:"real_name"`
- }
- type UserUpdateRequest struct {
- base.Header
- UserUpdateBody
- }
- type UserUpdateResponse struct {
- base.Result
- }
- type UserDelQuery struct {
- Id int64 `form:"id"`
- }
- type UserDelRequest struct {
- base.Header
- UserDelQuery
- }
- type UserDelResponse struct {
- base.Result
- }
- type UserListQuery struct {
- Page int64 `form:"page"`
- PageSize int64 `form:"page_size" json:"page_size"`
- UserName string `form:"user_name" json:"user_name"`
- Phone string `form:"phone"`
- GroupId int64 `form:"group_id" json:"group_id"`
- }
- type UserListRequest struct {
- base.Header
- UserListQuery
- }
- type UserListResponse struct {
- base.Result
- Data v1.UserListReply `json:"data"`
- }
|