12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- syntax = "proto3";
- package ops;
- option go_package = ".;filedPb";
- message FieldsType {
- enum Kind {
- INVALID_FIELD = 0;
- DATA_TIME = 1;
- TIME = 2;
- VARCHAR = 3;
- INT = 4;
- FLOAT = 5;
- BOOL = 6;
- }
- }
- message ComponentsType {
- enum Kind {
- SINGLE_LINE_TEXT = 0; // 单行文本
- MULTI_LINE_TEXT = 1; // 多行文本
- SELECT_BOX = 2; // 下拉框
- Radio_BOX = 3; // 单选框
- CHECK_BOX = 4; // 多选框
- DATE_TIME_PICKER = 5; // 日期选择器
- TIME_PICKER = 6; // 时间选择器
- SWITCH = 7; // 开关
- }
- }
- message CreatedFiledRequest {
- uint32 first_category_id = 1; // 字段分类一级id
- uint32 second_category_id = 2; // 字段分类二级id
- uint32 third_category_id = 3; // 字段分类三级id
- string filed_name = 4; // 字段名称
- FieldsType.Kind field_type = 5; // 字段类型
- ComponentsType.Kind components_type = 6; // 组件类型
- uint32 filed_len = 7; // 字段长度
- int64 min_value = 8; // 字段取值范围最小值
- int32 max_value = 9; // 字段取值范围最大值
- string calculation_rules = 10; // 计算规则
- }
- message CreatedFiledResponse {
- string id = 1;
- }
|