controller

package
v0.0.0-...-3a6d849 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SystemAgencyService = new(services.SystemAgencyService)
)

Functions

This section is empty.

Types

type SystemAgencyController

type SystemAgencyController struct {
	AddAgencyAdminReq struct {
		LineId          string `json:"lineId" valid:"Must;ErrorCode(3030)`          // 线路id
		Account         string `json:"account" valid:"Must;ErrorCode(3026)`         // 账号
		Password        string `json:"password" valid:"Must;ErrorCode(3027)`        // 密码
		ConfirmPassword string `json:"confirmPassword,omitempty"`                   // 确认密码
		Status          int    `json:"status" valid:"Must;ErrorCode(3028)`          // 状态 1正常 2停用
		WhiteIpAddress  string `json:"whiteIpAddress" valid:"Must;ErrorCode(3064)"` // ip白名单
	}

	QueryAgencyAdminReq struct {
		LineId    string `json:"lineId"`    // 线路id
		Account   string `json:"account"`   // 账号
		IsOnline  int    `json:"isOnline"`  // 在线状态
		PageIndex int    `json:"pageIndex"` // 页码
		PageSize  int    `json:"pageSize"`  // 每页条数
	}

	QueryAgencyAdminOneReq struct {
		Id int `json:"id" valid:"Must;ErrorCode(3031)` // 超管id
	}

	EditAgencyAdminReq struct {
		Id              int    `json:"id" valid:"Must;ErrorCode(3031)`              // 超管id
		Password        string `json:"password"`                                    // 密码
		ConfirmPassword string `json:"confirmPassword,omitempty"`                   // 确认密码
		Status          int    `json:"status" valid:"Must;ErrorCode(3028)`          // 状态 1正常 2停用
		WhiteIpAddress  string `json:"whiteIpAddress" valid:"Must;ErrorCode(3064)"` // ip白名单
	}

	QueryAgencyReq struct {
		LineId    string `json:"lineId"`    // 线路id
		IsOnline  int    `json:"isOnline"`  // 在线状态
		Status    int    `json:"status"`    // 停用状态
		Account   string `json:"account"`   // 账号
		PageIndex int    `json:"pageIndex"` // 页码
		PageSize  int    `json:"pageSize"`  // 每页条数
		AgencyId  string `json:"agencyId"`  // 站点id
	}

	EditAgencyStatusReq struct {
		Id     int `json:"id" valid:"Must;ErrorCode(3031)`     // 代理id
		Status int `json:"status" valid:"Must;ErrorCode(3028)` // 状态
	}

	AgencyCodeReq struct {
		LineId string `json:"lineId"` // 线路id
	}
}

超管控制器

func (SystemAgencyController) AddAgencyAdmin

func (m SystemAgencyController) AddAgencyAdmin(ctx server.Context) error

添加超管

func (SystemAgencyController) EditAgencyAdmin

func (m SystemAgencyController) EditAgencyAdmin(ctx server.Context) error

修改超管

func (SystemAgencyController) EditAgencyStatus

func (m SystemAgencyController) EditAgencyStatus(ctx server.Context) error

修改代理状态

func (SystemAgencyController) QueryAgencyAdminList

func (m SystemAgencyController) QueryAgencyAdminList(ctx server.Context) error

查询全部超管

func (SystemAgencyController) QueryAgencyAdminOne

func (m SystemAgencyController) QueryAgencyAdminOne(ctx server.Context) error

根据id查询超管信息

func (SystemAgencyController) QueryAgencyList

func (m SystemAgencyController) QueryAgencyList(ctx server.Context) error

查询全部代理

func (SystemAgencyController) SiteCode

func (m SystemAgencyController) SiteCode(ctx server.Context) error

站点枚举

Jump to

Keyboard shortcuts

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