12345678910111213141516171819202122232425262728293031 |
- package hobby
- import (
- "git.sxidc.com/go-tools/utils/strutils"
- )
- type Entity struct {
- ID string `sqlmapping:"-" sqlresult:"-" check:"required,len=32,when=create/delete/update"`
- StudentIDs []string `sqlmapping:"-" sqlresult:"-"`
- }
- func (e *Entity) GenerateID() error {
- e.ID = strutils.SimpleUUID()
- return nil
- }
- func (e *Entity) GetID() string {
- return e.ID
- }
- func (e *Entity) DomainCNName() string {
- return "爱好"
- }
- func (e *Entity) DomainCamelName() string {
- return "Hobby"
- }
- func (e *Entity) GetFieldMap() map[string]string {
- return make(map[string]string)
- }
|