| 12345678910111213141516171819202122232425262728 |
- package viewmodels
- import "encoding/json"
- type ApiDataInfo struct {
- ModId int64 `json:"modId" xorm:"'mod_id' bigint pk comment('Module ID')"`
- ModTitle string `json:"modTitle" xorm:"'mod_title' varchar(127) comment('Module Title') "`
- ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('Api ID') "`
- ApiType int64 `json:"apiType" xorm:"'api_type' bigint pk comment('Api Type') "`
- ApiTitle string `json:"apiTitle" xorm:"'api_title' varchar(127) comment('名称') "`
- ApiCode string `json:"apiCode" xorm:"'api_code' varchar(127) comment('编码') "`
- ApiParams string `json:"apiParams" xorm:"'api_params' varchar(127) comment('Param') "`
- Status int64 `json:"status" xorm:"'status' bigint comment('Status') "`
- ApiDesc string `json:"apiDesc" xorm:"'api_desc' varchar(50) comment('描述') "`
- TransUnits []ApiTransUnitInfo `json:"transUnits"`
- }
- func (t *ApiDataInfo) TableName() string {
- return "ps_api"
- }
- func (g *ApiDataInfo) MarshalBinary() (data []byte, err error){
- return json.Marshal(g)
- }
- func (g *ApiDataInfo) UnmarshalBinary(data []byte) (err error){
- return json.Unmarshal(data, g)
- }
|