| 1234567891011121314151617181920212223242526272829303132 |
- package configuration
- import (
- "git.sxidc.com/go-tools/utils/strutils"
- "git.sxidc.com/service-supports/fserr"
- )
- const (
- tableName = "configurations"
- )
- const (
- ColumnGroup = "group"
- ColumnValue = "value"
- )
- type Entity struct {
- Group string `sqlmapping:"column:group;key;notUpdate;" sqlresult:"column:group;"`
- Value string `sqlmapping:"column:value;notUpdate;" sqlresult:"column:value;"`
- }
- func (e *Entity) DomainCNName() string {
- return "配置"
- }
- func (e *Entity) CheckKeyFields() error {
- if strutils.IsStringEmpty(e.Group) {
- return fserr.New("没有传递配置组")
- }
- return nil
- }
|