import "../base.api"

type (
    // The data of employee config information | EmployeeConfig信息
    EmployeeConfigInfo {
        BaseIDInfo

        // 类型：scene-场景 switch_in-接入方式 
        Stype  *string `json:"stype,optional"`

        // 标题
        Title  *string `json:"title,optional"`

        // 图片地址 
        Photo  *string `json:"photo,optional"`
    }

    // EmployeeConfig list data | EmployeeConfig列表数据
    EmployeeConfigListInfo {
        BaseListInfo

        // The API list data | EmployeeConfig列表数据
        Data  []EmployeeConfigInfo  `json:"data"`
    }

	// Employee config response | Employee配置信息返回体
	EmployeeConfigListReq {
		/// 类型：scene-场景 switch_in-接入方式
		Stype  *string `json:"stype,optional"`
	}

    // EmployeeConfig information response | EmployeeConfig信息返回体
	EmployeeConfig {
		Scene []EmployeeConfigInfo `json:"scene"`
		SwitchIn []EmployeeConfigInfo `json:"switchIn"`
	}

	// Employee config response | Employee配置信息返回体
	EmployeeConfigListResp {
		BaseDataInfo

		// Employee information | Employee数据
		Data EmployeeConfig `json:"data"`
	}
)

@server(
    jwt: Auth
    group: employee_config
    middleware: Authority
)

service Wechat {
	// Get employee config list | 获取EmployeeConfig列表
	@handler getEmployeeListConfig
	get /employee_config/list (EmployeeConfigListReq) returns (EmployeeConfigListResp)
}
