|
|
@@ -3,23 +3,27 @@ package datamodels
|
|
|
import "time"
|
|
|
|
|
|
type Api struct {
|
|
|
- ModuleId int64 `json:"moduleId" xorm:"'module_id' bigint pk pk comment('Module ID') "`
|
|
|
- ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('Api ID') "`
|
|
|
- ApiType int64 `json:"apiType" xorm:"'api_type' bigint 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('描述') "`
|
|
|
- CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
|
|
|
- CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
|
|
|
- UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
|
|
|
- UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
|
|
|
- DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
|
|
|
- DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
|
|
|
- DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
|
|
|
+ ModuleId int64 `json:"moduleId" xorm:"'module_id' bigint pk pk comment('Module ID') "`
|
|
|
+ ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('Api ID') "`
|
|
|
+ ApiType int64 `json:"apiType" xorm:"'api_type' bigint 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('描述') "`
|
|
|
+ ObjectType int64 `json:"objectType" xorm:"'objectType' bigint comment('Object Type')"`
|
|
|
+ ObjectGroupId int64 `json:"objectGroupId" xorm:"'objectGroupId' bigint comment('Object GroupId')"`
|
|
|
+ ObjectId int64 `json:"objectId" xorm:"'objectId' bigint comment('Object Id') "`
|
|
|
+ OamId int64 `json:"oamId" xorm:"'oamId' bigint comment('Oam Id') "`
|
|
|
+ CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
|
|
|
+ CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
|
|
|
+ UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
|
|
|
+ UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
|
|
|
+ DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
|
|
|
+ DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
|
|
|
+ DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
|
|
|
}
|
|
|
|
|
|
func (t *Api) TableName() string {
|
|
|
- return "ps_api"
|
|
|
+ return "api"
|
|
|
}
|