123456789101112131415161718192021 |
- package models
- type ProxyEntity struct {
- Id int `orm:"pk;auto" json:"id"`
- Name string `orm:"size(100)" json:"name"`
- UserId int `json:"userId"`
- Enable bool `orm:"default(true)" json:"enable"`
- Rel string `json:"rel"`
- Patterns string `json:"patterns"`
- StripPrefix string `json:"stripPrefix"`
- Target string `json:"target"`
- Ws string `json:"ws"`
- Remark string `json:"remark"`
- }
- func (s *ProxyEntity) UniqueClone() (*ProxyEntity, string) {
- return &ProxyEntity{
- Id: s.Id,
- }, "Id"
- }
|