审查视图

pkg/application/company/command/save_company.go 892 字节
tangxvhui authored
1 2
package command
庄敏学 authored
3 4
// AddCompanyCommand 数据来源 企业平台 推送的消息
// 新建公司
tangxvhui authored
5
type SaveCompanyCommand struct {
tangxvhui authored
6
	//新添加的公司
庄敏学 authored
7
	Company struct {
tangxvhui authored
8 9 10 11 12
		Id     int64  `json:"id" `
		Logo   string `json:"logo"`   // 公司logo
		Name   string `json:"name"`   // 公司名称
		Status int    `json:"status"` // 公司状态,1正常 2禁用
	} `json:"company"`
tangxvhui authored
13
	//新添加公司时,第一個用户就是主管理员
tangxvhui authored
14 15 16 17 18 19 20 21 22 23
	User struct {
		Id        int64  ` json:"id"`        // 用户Id
		Phone     string `json:"phone"`      // 用户账号
		Avatar    string `json:"avatar"`     // 用户头像URL
		CompanyId int64  `json:"company_id"` // 公司编号
		AdminType int    `json:"admin_type"` // 1普通员工  2 主管理员
		Name      string `json:"name"`       // 用户姓名
		Status    int    `json:"status"`     // 用户状态(1正常 2禁用)
	} `json:"user"`
}