types

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

*

  • Created by GoLand.
  • Email: xzghua@gmail.com
  • Date: 2019-07-17
  • Time: 15:07

*

  • Created by GoLand.
  • User: zghua
  • Email: xzghua@gmail.com
  • Date: 2019-06-25
  • Time: 21:08

*

  • Created by GoLand.
  • User: zghua
  • Email: xzghua@gmail.com
  • Date: 2019-06-24
  • Time: 17:40

*

  • Created by GoLand.
  • Email: xzghua@gmail.com
  • Date: 2019-07-12
  • Time: 16:44

*

  • Created by GoLand.
  • User: zghua
  • Email: xzghua@gmail.com
  • Date: 2019-07-01
  • Time: 15:36

*

  • Created by GoLand.
  • User: zghua
  • Email: xzghua@gmail.com
  • Date: 2019-06-25
  • Time: 17:10

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Address   null.String `gorm:"column:address" json:"address"`
	BuildEnv  null.String `gorm:"column:build_env" json:"build_env"`
	BuildID   null.Int    `gorm:"column:build_id" json:"build_id"`
	BuildTime null.Time   `gorm:"column:build_time" json:"build_time"`
	BuilderID int64       `gorm:"column:builder_id" json:"builder_id"`
	CreatedAt null.Time   `gorm:"column:created_at" json:"created_at"`
	Desc      null.String `gorm:"column:desc" json:"desc"`
	GitType   null.String `gorm:"column:git_type" json:"git_type"`
	ID        int64       `gorm:"column:id;primary_key" json:"id"`
	Name      string      `gorm:"column:name" json:"name"`
	Namespace string      `gorm:"column:namespace" json:"namespace"`
	Output    null.String `gorm:"column:output;type:text" json:"output"`
	Path      null.String `gorm:"column:path" json:"path"`
	Status    null.String `gorm:"column:status" json:"status"`
	UpdatedAt null.Time   `gorm:"column:updated_at" json:"updated_at"`
	Version   string      `gorm:"column:version" json:"version"`
	Member    Member      `gorm:"ForeignKey:id;AssociationForeignKey:BuilderID" json:"member"`
}

func (*Build) TableName

func (b *Build) TableName() string

TableName sets the insert table name for this struct type

type Casbin

type Casbin struct {
	ID       int64  `gorm:"-"`
	Ptype    string `json:"ptype" gorm:"ptype"`
	RoleName string `json:"rolename" gorm:"v0"`
	Path     string `json:"path" gorm:"v1"`
	Method   string `json:"method" gorm:"v2"`
}

func (*Casbin) TableName

func (m *Casbin) TableName() string

type ConfigData

type ConfigData struct {
	ConfigMapID int64     `gorm:"column:config_map_id" json:"config_map_id"`
	CreatedAt   null.Time `gorm:"column:created_at" json:"created_at"`
	ID          int64     `gorm:"column:id;primary_key" json:"id"`
	Key         string    `gorm:"column:key" json:"key"`
	UpdatedAt   null.Time `gorm:"column:updated_at" json:"updated_at"`
	Value       string    `gorm:"column:value;type:text" json:"value"`
	Path        string    `gorm:"column:path" json:"path"`

	ConfigMap ConfigMap `gorm:"ForeignKey:id;AssociationForeignKey:ConfigMapID"`
}

func (*ConfigData) TableName

func (c *ConfigData) TableName() string

TableName sets the insert table name for this struct type

type ConfigEnv

type ConfigEnv struct {
	CreatedAt null.Time `gorm:"column:created_at" json:"created_at"`
	EnvDesc   string    `gorm:"column:env_desc" json:"env_desc"`
	EnvKey    string    `gorm:"column:env_key" json:"env_key"`
	EnvVar    string    `gorm:"column:env_var" json:"env_var"`
	ID        int       `gorm:"column:id;primary_key" json:"id"`
	Name      string    `gorm:"column:name" json:"name"`
	Namespace string    `gorm:"column:namespace" json:"namespace"`
	UpdatedAt null.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (*ConfigEnv) TableName

func (c *ConfigEnv) TableName() string

TableName sets the insert table name for this struct type

type ConfigMap

type ConfigMap struct {
	CreatedAt null.Time `gorm:"column:created_at" json:"created_at"`
	Desc      string    `gorm:"column:desc" json:"desc"`
	ID        int64     `gorm:"column:id;primary_key" json:"id"`
	Name      string    `gorm:"column:name" json:"name"`
	Namespace string    `gorm:"column:namespace" json:"namespace"`
	Type      null.Int  `gorm:"column:type" json:"type"`
	UpdatedAt null.Time `gorm:"column:updated_at" json:"updated_at"`

	ConfigData []ConfigData `gorm:"ForeignKey:id;AssociationForeignKey:config_map_id"`
}

func (*ConfigMap) TableName

func (c *ConfigMap) TableName() string

TableName sets the insert table name for this struct type

type Consul

type Consul struct {
	CreateIndex  int64  `gorm:"column:create_index" json:"create_index"`
	ID           int64  `gorm:"column:id;primary_key" json:"id"`
	ModifyIndex  int64  `gorm:"column:modify_index" json:"modify_index"`
	Name         string `gorm:"column:name" json:"name"`
	Namespace    string `gorm:"column:namespace" json:"namespace"`
	Rules        string `gorm:"column:rules;type:text" json:"rules"`
	Token        string `gorm:"column:token" json:"token"`
	Type         string `gorm:"column:type" json:"type"`
	EncryptToken string `gorm:"-" json:"encrypt_token"`
}

func (*Consul) TableName

func (c *Consul) TableName() string

TableName sets the insert table name for this struct type

type Cronjob

type Cronjob struct {
	Active       int       `gorm:"column:active" json:"active"`
	AddType      string    `gorm:"column:add_type" json:"add_type"`
	Args         string    `gorm:"column:args" json:"args"`
	ConfMapName  string    `gorm:"column:conf_map_name" json:"conf_map_name"`
	CreatedAt    null.Time `gorm:"column:created_at" json:"created_at"`
	GitPath      string    `gorm:"column:git_path" json:"git_path"`
	GitType      string    `gorm:"column:git_type" json:"git_type"`
	ID           int64     `gorm:"column:id;primary_key" json:"id"`
	Image        string    `gorm:"column:image" json:"image"`
	LastSchedule null.Time `gorm:"column:last_schedule" json:"last_schedule"`
	LogPath      string    `gorm:"column:log_path" json:"log_path"`
	MemberID     int64     `gorm:"column:member_id" json:"member_id"`
	Name         string    `gorm:"column:name" json:"name"`
	Namespace    string    `gorm:"column:namespace" json:"namespace"`
	Schedule     string    `gorm:"column:schedule" json:"schedule"`
	Suspend      int       `gorm:"column:suspend" json:"suspend"`
	UpdatedAt    null.Time `gorm:"column:updated_at" json:"updated_at"`

	Groups []*Groups `` /* 164-byte string literal not displayed */
}

func (*Cronjob) TableName

func (c *Cronjob) TableName() string

TableName sets the insert table name for this struct type

type Dockerfile

type Dockerfile struct {
	AuthorID   int64       `gorm:"column:author_id" json:"author_id"`
	CreatedAt  null.Time   `gorm:"column:created_at" json:"created_at"`
	Desc       null.String `gorm:"column:desc" json:"desc"`
	Detail     string      `gorm:"column:detail;type:text" json:"detail"`
	Dockerfile string      `gorm:"column:dockerfile;type:text" json:"dockerfile"`
	Download   null.Int    `gorm:"column:download" json:"download"`
	FullPath   string      `gorm:"column:full_path" json:"full_path"`
	ID         int64       `gorm:"column:id;primary_key" json:"id"`
	Language   string      `gorm:"column:language" json:"language"`
	Name       string      `gorm:"column:name" json:"name"`
	Score      null.Int    `gorm:"column:score" json:"score"`
	Sha256     null.String `gorm:"column:sha256" json:"sha_256"`
	Status     null.Int    `gorm:"column:status" json:"status"`
	UpdatedAt  null.Time   `gorm:"column:updated_at" json:"updated_at"`
	UploaderID int64       `gorm:"column:uploader_id" json:"uploader_id"`
	Version    string      `gorm:"column:version" json:"version"`

	Member Member `gorm:"ForeignKey:id;AssociationForeignKey:author_id" json:"member"`
}

func (*Dockerfile) TableName

func (d *Dockerfile) TableName() string

TableName sets the insert table name for this struct type

type Event

type Event struct {
	Description null.String `gorm:"column:description"json:"description"`
	ID          int         `gorm:"column:id;primary_key"json:"id"`
	Name        null.String `gorm:"column:name"json:"name"`
	WebHook     []*Webhook  `` /* 162-byte string literal not displayed */
}

func (*Event) TableName

func (e *Event) TableName() string

TableName sets the insert table name for this struct type

type EventHistory

type EventHistory struct {
	AppName   string    `gorm:"column:app_name"`
	CreatedAt null.Time `gorm:"column:created_at"`
	Date      string    `gorm:"column:date;size(10000)"`
	Event     string    `gorm:"column:event"`
	ID        int       `gorm:"column:id;primary_key"`
	Namespace string    `gorm:"column:namespace"`
	UpdatedAt null.Time `gorm:"column:updated_at"`
}

func (*EventHistory) TableName

func (e *EventHistory) TableName() string

TableName sets the insert table name for this struct type

type Groups

type Groups struct {
	CreatedAt   time.Time `gorm:"column:created_at" json:"created_at"`
	ID          int64     `gorm:"column:id;primary_key" json:"id"`
	Name        string    `gorm:"column:name" json:"name"`
	DisplayName string    `gorm:"column:display_name" json:"display_name"`
	Namespace   string    `gorm:"column:namespace" json:"namespace"`
	MemberId    int64     `gorm:"column:member_id" json:"member_id"`
	UpdatedAt   time.Time `gorm:"column:updated_at" json:"updated_at"`

	Member Member    `gorm:"ForeignKey:id;AssociationForeignKey:MemberId;" json:"member"`
	Ns     Namespace `gorm:"ForeignKey:Name;AssociationForeignKey:Namespace" json:"ns"`

	Members  []Member  `` /* 163-byte string literal not displayed */
	Cronjobs []Cronjob `` /* 166-byte string literal not displayed */
	Projects []Project `` /* 166-byte string literal not displayed */
}

func (*Groups) TableName

func (g *Groups) TableName() string

TableName sets the insert table name for this struct type

type GroupsCronjobs

type GroupsCronjobs struct {
	CronjobsID int64 `gorm:"column:cronjobs_id"`
	GroupsID   int64 `gorm:"column:groups_id"`
	ID         int64 `gorm:"column:id;primary_key"`
}

func (*GroupsCronjobs) TableName

func (g *GroupsCronjobs) TableName() string

TableName sets the insert table name for this struct type

type GroupsMemberss

type GroupsMemberss struct {
	GroupsID  int64 `gorm:"column:groups_id"`
	ID        int64 `gorm:"column:id;primary_key"`
	MembersID int64 `gorm:"column:members_id"`
}

func (*GroupsMemberss) TableName

func (g *GroupsMemberss) TableName() string

TableName sets the insert table name for this struct type

type IngressField

type IngressField struct {
	Namespace string        `json:"namespace"`
	Name      string        `json:"name"`
	Rules     []*RuleStruct `json:"rules"`
}

type Level

type Level int
const (
	LevelAdmin Level = 100
	LevelOps   Level = 200
)

type Member

type Member struct {
	CreatedAt  null.Time   `gorm:"column:created_at" json:"created_at"`
	Email      string      `gorm:"column:email" json:"email"`
	ID         int64       `gorm:"column:id;primary_key" json:"id"`
	Openid     string      `gorm:"column:openid" json:"openid"`
	Phone      string      `gorm:"column:phone" json:"phone"`
	State      int64       `gorm:"column:state" json:"state"`
	City       string      `gorm:"column:city" json:"city"`
	Department string      `gorm:"column:department" json:"department"`
	UpdatedAt  null.Time   `gorm:"column:updated_at" json:"updated_at"`
	Username   string      `gorm:"column:username" json:"username"`
	Password   null.String `gorm:"column:password" json:"password"`

	Groups     []Groups    `` /* 162-byte string literal not displayed */
	Namespaces []Namespace `` /* 174-byte string literal not displayed */
	Roles      []Role      `` /* 159-byte string literal not displayed */
}

func (*Member) TableName

func (m *Member) TableName() string

TableName sets the insert table name for this struct type

type Namespace

type Namespace struct {
	CreatedAt   null.Time `gorm:"column:created_at" json:"created_at"`
	ID          int64     `gorm:"column:id;primary_key" json:"id"`
	DisplayName string    `gorm:"column:display_name" json:"display_name"`
	Name        string    `gorm:"column:name" json:"name"`
	UpdatedAt   null.Time `gorm:"column:updated_at" json:"updated_at"`

	Members []Member `` /* 155-byte string literal not displayed */
}

func (*Namespace) TableName

func (n *Namespace) TableName() string

TableName sets the insert table name for this struct type

type NamespacesMembers

type NamespacesMembers struct {
	ID           int64 `gorm:"column:id;primary_key"`
	MembersID    int64 `gorm:"column:members_id"`
	NamespacesID int64 `gorm:"column:namespaces_id"`
}

func (*NamespacesMembers) TableName

func (n *NamespacesMembers) TableName() string

TableName sets the insert table name for this struct type

type NoticeAction added in v0.2.2

type NoticeAction string
const (
	NoticeActionAlarm  NoticeAction = "Alarm"
	NoticeActionDelete NoticeAction = "Delete"
	NoticeActionApply  NoticeAction = "Apply"
	NoticeActionBuild  NoticeAction = "Build"
	NoticeActionAudit  NoticeAction = "Audit"
)

type NoticeMember

type NoticeMember struct {
	CreatedAt null.Time `gorm:"column:created_at" json:"created_at"`
	ID        int64     `gorm:"column:id;primary_key" json:"id"`
	IsRead    int       `gorm:"column:is_read" json:"is_read"`
	MemberID  int64     `gorm:"column:member_id" json:"member_id"`
	NoticeID  int64     `gorm:"column:notice_id" json:"notice_id"`
}

func (*NoticeMember) TableName

func (n *NoticeMember) TableName() string

TableName sets the insert table name for this struct type

type NoticeReceive

type NoticeReceive struct {
	Bee          int       `gorm:"column:bee" json:"bee"`
	CreatedAt    null.Time `gorm:"column:created_at" json:"created_at"`
	Email        int       `gorm:"column:email" json:"email"`
	ID           int64     `gorm:"column:id;primary_key" json:"id"`
	MemberID     int       `gorm:"column:member_id" json:"member_id"`
	NoticeAction string    `gorm:"column:notice_action" json:"notice_action"`
	Site         int       `gorm:"column:site" json:"site"`
	Sms          int       `gorm:"column:sms" json:"sms"`
	UpdatedAt    null.Time `gorm:"column:updated_at" json:"updated_at"`
	Wechat       int       `gorm:"column:wechat" json:"wechat"`
}

func (*NoticeReceive) TableName

func (n *NoticeReceive) TableName() string

TableName sets the insert table name for this struct type

type Notices

type Notices struct {
	Action          string    `gorm:"column:action" json:"action"`
	Content         string    `gorm:"column:content;type:text" json:"content"`
	CreatedAt       null.Time `gorm:"column:created_at" json:"created_at"`
	ID              int64     `gorm:"column:id;primary_key" json:"id"`
	MemberID        int       `gorm:"column:member_id" json:"member_id"`
	Name            string    `gorm:"column:name" json:"name"`
	Namespace       string    `gorm:"column:namespace" json:"namespace"`
	ProclaimReceive string    `gorm:"column:proclaim_receive" json:"proclaim_receive"`
	ProclaimType    string    `gorm:"column:proclaim_type" json:"proclaim_type"`
	Title           string    `gorm:"column:title" json:"title"`
	Type            int       `gorm:"column:type" json:"type"`
}

func (*Notices) TableName

func (n *Notices) TableName() string

TableName sets the insert table name for this struct type

type Paths

type Paths struct {
	Path        string `json:"path"`
	ServiceName string `json:"serviceName"`
	PortName    int    `json:"port"`
}

type Permission

type Permission struct {
	CreatedAt null.Time   `gorm:"column:created_at" json:"created_at"`
	Icon      null.String `gorm:"column:icon" json:"icon"`
	ID        int64       `gorm:"column:id;primary_key" json:"id"`
	Menu      null.Bool   `gorm:"column:menu" json:"menu"`
	Method    null.String `gorm:"column:method" json:"method"`
	Name      string      `gorm:"column:name" json:"name"`
	ParentID  null.Int    `gorm:"column:parent_id" json:"parent_id"`
	Path      string      `gorm:"column:path" json:"path"`
	UpdatedAt null.Time   `gorm:"column:updated_at" json:"updated_at"`
}

func (*Permission) TableName

func (p *Permission) TableName() string

TableName sets the insert table name for this struct type

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	AccessModes      string      `gorm:"column:access_modes" json:"access_modes"`
	CreatedAt        null.Time   `gorm:"column:created_at" json:"created_at"`
	Desc             null.String `gorm:"column:desc" json:"desc"`
	Detail           null.String `gorm:"column:detail;type:text" json:"detail"`
	ID               int64       `gorm:"column:id;primary_key" json:"id"`
	Labels           null.String `gorm:"column:labels" json:"labels"`
	Name             string      `gorm:"column:name" json:"name"`
	Namespace        string      `gorm:"column:namespace" json:"namespace"`
	Selector         null.String `gorm:"column:selector" json:"selector"`
	Storage          string      `gorm:"column:storage" json:"storage"`
	StorageClassName null.String `gorm:"column:storage_class_name" json:"storage_class_name"`
	UpdatedAt        null.Time   `gorm:"column:updated_at" json:"updated_at"`
}

func (*PersistentVolumeClaim) TableName

func (p *PersistentVolumeClaim) TableName() string

TableName sets the insert table name for this struct type

type Port

type Port struct {
	Name     string `json:"name"`
	Port     int    `json:"port"`
	Protocol string `json:"protocol"`
}

type Project

type Project struct {
	AuditState   int64     `gorm:"column:audit_state" json:"audit_state"`
	CreatedAt    null.Time `gorm:"column:created_at" json:"created_at"`
	Desc         string    `gorm:"column:desc;varchar(500)" json:"desc"`
	ID           int64     `gorm:"column:id;primary_key" json:"id"`
	Language     string    `gorm:"column:language" json:"language"`
	MemberID     int64     `gorm:"column:member_id" json:"member_id"`
	DisplayName  string    `gorm:"column:display_name" json:"display_name"`
	Name         string    `gorm:"column:name" json:"name"`
	Namespace    string    `gorm:"column:namespace" json:"namespace"`
	PublishState int64     `gorm:"column:publish_state" json:"publish_state"`
	Step         int64     `gorm:"column:step" json:"step"`
	UpdatedAt    null.Time `gorm:"column:updated_at" json:"updated_at"`

	Member           Member             `gorm:"ForeignKey:id;AssociationForeignKey:MemberId" json:"member"`
	Groups           []*Groups          `` /* 164-byte string literal not displayed */
	ProjectTemplates []*ProjectTemplate `gorm:"foreignkey:ProjectID" json:"project_templates"`
}

func (*Project) TableName

func (p *Project) TableName() string

TableName sets the insert table name for this struct type

type ProjectJenkins

type ProjectJenkins struct {
	ID         int       `gorm:"column:id;primary_key" json:"id"`
	Name       string    `gorm:"column:name" json:"name"`
	Namespace  string    `gorm:"column:namespace" json:"namespace"`
	Command    string    `gorm:"column:command;type:text" json:"command"`
	GitAddr    string    `gorm:"column:git_addr" json:"git_addr"`
	GitType    string    `gorm:"column:git_type" json:"git_type"`
	GitVersion string    `gorm:"column:git_version" json:"git_version"`
	CreatedAt  null.Time `gorm:"column:created_at" json:"created_at"`
	UpdatedAt  null.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (*ProjectJenkins) TableName

func (p *ProjectJenkins) TableName() string

TableName sets the insert table name for this struct type

type ProjectTemplate

type ProjectTemplate struct {
	CreatedAt          null.Time     `gorm:"column:created_at" json:"created_at"`
	Fields             string        `gorm:"column:fields;type:text;size(10000)" json:"fields"`
	FinalTemplate      string        `gorm:"column:final_template;type:text;size(10000)" json:"final_template"`
	ID                 int64         `gorm:"column:id;primary_key" json:"id"`
	Kind               string        `gorm:"column:kind;size(255)" json:"kind"`
	ProjectID          int64         `gorm:"column:project_id" json:"project_id"`
	State              int64         `gorm:"column:state" json:"state"`
	UpdatedAt          null.Time     `gorm:"column:updated_at" json:"updated_at"`
	Project            Project       `gorm:"ForeignKey:id;AssociationForeignKey:ProjectID"`
	FieldStruct        TemplateField `gorm:"_" json:"field_struct"`
	IngressFieldStruct IngressField  `gorm:"_" json:"field_struct"`
}

func (*ProjectTemplate) TableName

func (p *ProjectTemplate) TableName() string

TableName sets the insert table name for this struct type

type Role

type Role struct {
	CreatedAt   null.Time    `gorm:"column:created_at" json:"created_at"`
	ID          int64        `gorm:"column:id;primary_key" json:"id"`
	Name        string       `gorm:"column:name" json:"name"`
	State       int          `gorm:"column:state" json:"state"`
	UpdatedAt   null.Time    `gorm:"column:updated_at" json:"updated_at"`
	Description string       `gorm:"column:description" json:"description"`
	Level       int          `gorm:"column:level" json:"level"`
	Permissions []Permission `` /* 152-byte string literal not displayed */

}

func (*Role) TableName

func (r *Role) TableName() string

TableName sets the insert table name for this struct type

type RuleStruct

type RuleStruct struct {
	Domain string   `json:"domain"`
	Paths  []*Paths `json:"paths"`
}

type ServiceField

type ServiceField struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Ports     []Port `json:"ports"`
}

type StorageClass

type StorageClass struct {
	CreatedAt         null.Time   `gorm:"column:created_at" json:"created_at"`
	Desc              null.String `gorm:"column:desc" json:"desc"`
	Detail            string      `gorm:"column:detail;type:text;size(10000)" json:"detail"`
	ID                int64       `gorm:"column:id;primary_key" json:"id"`
	Name              string      `gorm:"column:name" json:"name"`
	Provisioner       string      `gorm:"column:provisioner" json:"provisioner"`
	ReclaimPolicy     string      `gorm:"column:reclaim_policy" json:"reclaim_policy"`
	UpdatedAt         null.Time   `gorm:"column:updated_at" json:"updated_at"`
	VolumeBindingMode string      `gorm:"column:volume_binding_mode" json:"volume_binding_mode"`
}

func (*StorageClass) TableName

func (s *StorageClass) TableName() string

TableName sets the insert table name for this struct type

type Template

type Template struct {
	CreatedAt null.Time `gorm:"column:created_at" json:"created_at"`
	Detail    string    `gorm:"column:detail;type:text;size(10000)" json:"detail"`
	ID        int64     `gorm:"column:id;primary_key" json:"id"`
	Kind      string    `gorm:"column:kind;size(255)" json:"kind"`
	Name      string    `gorm:"column:name;size(255)" json:"name"`
	Rules     string    `gorm:"column:rules;size(5000)" json:"rules"`
	UpdatedAt null.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (*Template) TableName

func (t *Template) TableName() string

TableName sets the insert table name for this struct type

type TemplateField

type TemplateField struct {
	Args         []string `json:"args"`
	Command      []string `json:"command"`
	GitAddr      string   `json:"git_addr"`
	BuildPath    string   `json:"build_path"`
	GitType      string   `json:"git_type"`
	GitVersion   string   `json:"git_version"`
	Branch       string   `json:"branch"`
	Image        string   `json:"image"`
	Language     string   `json:"language"`
	Name         string   `json:"name"`
	Namespace    string   `json:"namespace"`
	Ports        []Port   `json:"ports"`
	Replicas     int      `json:"replicas"`
	Mesh         string   `json:"mesh"`
	ResourceType string   `json:"resource_type"`
	Resources    string   `json:"resources"`
	Step         int      `json:"step"`
	PomFile      string   `json:"pom_file"`
}

type Webhook

type Webhook struct {
	AppName   string    `gorm:"column:app_name" json:"app_name"`
	AutherID  int       `gorm:"column:auther_id" json:"auther_id"`
	CreatedAt null.Time `gorm:"column:created_at" json:"created_at"`
	ID        int       `gorm:"column:id;primary_key" json:"id"`
	Name      string    `gorm:"column:name" json:"name"`
	Namespace string    `gorm:"column:namespace" json:"namespace"`
	Status    int       `gorm:"column:status" json:"status"`
	Target    string    `gorm:"column:target" json:"target"`
	Token     string    `gorm:"column:token" json:"token"`
	UpdatedAt null.Time `gorm:"column:updated_at" json:"updated_at"`
	URL       string    `gorm:"column:url" json:"url"`

	Member Member   `gorm:"ForeignKey:id;AssociationForeignKey:AutherID" json:"auther"`
	Events []*Event `` /* 161-byte string literal not displayed */
}

func (*Webhook) TableName

func (w *Webhook) TableName() string

TableName sets the insert table name for this struct type

type WechatUser

type WechatUser struct {
	City          string    `gorm:"column:city" json:"city"`
	Country       string    `gorm:"column:country" json:"country"`
	CreatedAt     null.Time `gorm:"column:created_at" json:"created_at"`
	Headimgurl    string    `gorm:"column:headimgurl" json:"headimgurl"`
	ID            int       `gorm:"column:id;primary_key" json:"id"`
	Nickname      string    `gorm:"column:nickname" json:"nickname"`
	Openid        string    `gorm:"column:openid" json:"openid"`
	Province      string    `gorm:"column:province" json:"province"`
	Remark        string    `gorm:"column:remark" json:"remark"`
	Sex           int       `gorm:"column:sex" json:"sex"`
	Subscribe     int       `gorm:"column:subscribe" json:"subscribe"`
	SubscribeTime time.Time `gorm:"column:subscribe_time" json:"subscribe_time"`
	UpdatedAt     null.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (*WechatUser) TableName

func (w *WechatUser) TableName() string

TableName sets the insert table name for this struct type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL