123456789101112131415161718192021 |
- package entity
- type Pipeline struct {
- Id int64 `gorm:"primary_key" json:"id"`
- Status int64 `json:"status"`
- PipelineId int `gorm:"not null" json:"pipeline_id" binding:"required"`
- Name string `gorm:"size:100;not null" json:"name" binding:"required"`
- Desc string `json:"desc"`
- StatusName string `gorm:"-" json:"status_name"`
- }
- func (Pipeline) TableName() string {
- return "pipeline"
- }
- type ParamPipeline struct {
- Id int64 `json:"id" binding:"required"`
- PipelineId int `json:"pipeline_id" binding:"required"`
- Name string `json:"name" binding:"required"`
- }
|