123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- // Copyright 2019 github.com. All rights reserved.
- // Use of this source code is governed by github.com.
- package v1
- import (
- "xingjia-management-gateway/apis"
- "xingjia-management-gateway/param/base"
- )
- type LoginBody struct {
- User string `form:"user"`
- Password string `form:"password"`
- }
- type LoginRequest struct {
- base.Header
- LoginBody
- }
- type LoginData struct {
- Uid int64 `json:"uid"`
- Token string `json:"token"`
- User string `json:"user"`
- UserType int32 `json:"user_type"`
- }
- type LoginResponse struct {
- base.Result
- Data LoginData `json:"data"`
- }
- type TokenRequest struct {
- base.Header
- }
- type TokenResponse struct {
- base.Result
- Data string `json:"data"`
- RefreshToken string `json:"refresh_token"`
- }
- type UserAddBody struct {
- User string `form:"user" json:"user"`
- Password string `form:"password" json:"password"`
- RealName string `form:"real_name" json:"real_name"`
- UserType int32 `form:"user_type" json:"user_type"`
- EffectiveStart int64 `form:"effective_start" json:"effective_start"`
- EffectiveEnd int64 `form:"effective_end" json:"effective_end"`
- }
- type UserAddRequest struct {
- base.Header
- UserAddBody
- }
- type UserAddResponse struct {
- base.Result
- }
- type UserListQuery struct {
- Page int64 `form:"page" json:"page"`
- PageSize int64 `form:"page_size" json:"page_size"`
- User string `form:"user" json:"user"`
- RealName string `form:"real_name" json:"real_name"`
- }
- type UserListRequest struct {
- base.Header
- UserListQuery
- }
- type UserListResponse struct {
- base.Result
- Data apis.UserListReply `json:"data"`
- }
- type UserDelQuery struct {
- Id int64 `form:"id" json:"id"`
- }
- type UserDelRequest struct {
- base.Header
- UserDelQuery
- }
- type UserDelResponse struct {
- base.Result
- }
- type UserResetPasswordBody struct {
- Id int64 `form:"id" json:"id"`
- Password string `form:"password" json:"password"`
- }
- type UserResetPasswordRequest struct {
- base.Header
- UserResetPasswordBody
- }
- type UserResetPasswordResponse struct {
- base.Result
- }
- type UserUpdateBody struct {
- User string `form:"user" json:"user"`
- Password string `form:"password" json:"password"`
- RealName string `form:"real_name" json:"real_name"`
- UserType int32 `form:"user_type" json:"user_type"`
- EffectiveStart int64 `form:"effective_start" json:"effective_start"`
- EffectiveEnd int64 `form:"effective_end" json:"effective_end"`
- Id int64 `form:"id" json:"id"`
- }
- type UserUpdateRequest struct {
- base.Header
- UserUpdateBody
- }
- type UserUpdateResponse struct {
- base.Result
- }
|