审查视图

pkg/infrastructure/service_gateway/allied_creation_basic/param_system_setting.go 2.2 KB
tangxuhui authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package allied_creation_basic

//更新系统设置
type (
	ReqSystemSettingUpdate struct {
		// 公司id
		CompanyId int64 `json:"companyId"`
		// 设定的值
		Value string `json:"value"`
		// 设置对应的编码
		SettingCode string `json:"settingCode"`
	}

	DataSystemSettingUpdate struct {
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
		// 公司id
		CompanyId int64 `json:"companyId,string"`
		// 管控层级
		ControlLevel string `json:"controlLevel"`
		// 描述
		Description string `json:"description"`
		// 设置对应的编码
		SettingCode string `json:"settingCode"`
		// 设置对应的名称
		SettingName string `json:"settingName"`
		// 数据id
		SystemSettingId int64 `json:"systemSettingId,string"`
		// 设定的值
		Value string `json:"value"`
		// 值类型
		ValueType string `json:"valueType"`
tangxuhui authored
31 32 33 34 35 36
	}
)

//获取企业的系统设置列表
type (
	ReqSystemSettingSearch struct {
tangxuhui authored
37
		SettingName string `json:"settingName"` //配置名称搜索
tangxuhui authored
38 39 40
	}

	DataSystemSettingSearch struct {
tangxuhui authored
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
		Grid struct {
			Total int `json:"total"`
			List  []struct {
				// 公司id
				CompanyId int64 `json:"companyId,string,"`
				// 管控层级
				ControlLevel string `json:"controlLevel"`
				// 描述
				Description string `json:"description"`
				// 设置对应的编码
				SettingCode string `json:"settingCode"`
				// 设置对应的名称
				SettingName string `json:"settingName"`
				// 数据id
				SystemSettingId int64 `json:"systemSettingId,string,"`
				// 设定的值
				Value string `json:"value"`
				// 值类型
				ValueType string `json:"valueType"`
			} `json:"list"`
		} `json:"grid"`
tangxuhui authored
62 63 64 65 66 67 68 69 70 71 72
	}
)

//获取企业的系统设置项
type (
	ReqSystemSettingGet struct {
		SettingCode string `json:"settingCode"`
	}

	DataSystemSettingGet struct {
		// 公司id
73
		CompanyId int64 `json:"companyId,string"`
tangxuhui authored
74 75 76 77 78 79 80 81 82
		// 管控层级
		ControlLevel string `json:"controlLevel"`
		// 描述
		Description string `json:"description"`
		// 设置对应的编码
		SettingCode string `json:"settingCode"`
		// 设置对应的名称
		SettingName string `json:"settingName"`
		// 数据id
83
		SystemSettingId int64 `json:"systemSettingId,string"`
tangxuhui authored
84 85 86 87 88 89
		// 设定的值
		Value string `json:"value"`
		// 值类型
		ValueType string `json:"valueType"`
	}
)