github.com/SupenBysz/gf-admin-community@v0.7.4/sys_model/sys_industry.go (about)

     1  package sys_model
     2  
     3  import (
     4  	"github.com/SupenBysz/gf-admin-community/sys_model/sys_entity"
     5  	"github.com/kysion/base-library/base_model"
     6  )
     7  
     8  /*
     9  	行业类别
    10  */
    11  
    12  type SysIndustry struct {
    13  	Id           int64   `json:"id"        dc:"ID,ID值为0时则新增菜单" v:"min:0#ID不能小于0"`
    14  	CategoryId   *int64  `json:"categoryId" description:"行业ID"`
    15  	CategoryName *string `json:"categoryName"       description:"行业名称"`
    16  	CategoryDesc *string `json:"categoryDesc"       description:"行业描述"`
    17  	Rate         *int    `json:"rate"       description:"费率"`
    18  	ParentId     *int64  `json:"parentId"  dc:"所属父级" v:"integer|min:0#父级ID参数错误|父级ID不能小于0" default:"0"`
    19  	Sort         *int    `json:"sort"      dc:"排序" v:"integer#排序参数错误"`
    20  	State        *int    `json:"state"    dc:"状态:0隐藏,1显示" v:"in:0,1#请选择状态类型" default:"1"`
    21  }
    22  
    23  type UpdateSysIndustry struct {
    24  	Id           int64   `json:"id"        dc:"ID,ID值为0时则新增菜单" v:"min:0#ID不能小于0"`
    25  	CategoryId   *int64  `json:"categoryId" description:"行业ID"`
    26  	CategoryName *string `json:"categoryName"       description:"行业名称"`
    27  	CategoryDesc *string `json:"categoryDesc"       description:"行业描述"`
    28  	Rate         *int    `json:"rate"       description:"费率"`
    29  	ParentId     *int64  `json:"parentId"  dc:"所属父级" v:"integer|min:0#父级ID参数错误|父级ID不能小于0" default:"0"`
    30  	Sort         *int    `json:"sort"      dc:"排序" v:"integer#排序参数错误"`
    31  	State        *int    `json:"state"    dc:"状态:0隐藏,1显示" v:"in:0,1#请选择状态类型" default:"1"`
    32  }
    33  
    34  type SysIndustryRes sys_entity.SysIndustry
    35  type SysIndustryListRes base_model.CollectRes[*sys_entity.SysIndustry]
    36  
    37  type SysIndustryTreeRes struct {
    38  	*sys_entity.SysIndustry
    39  	Children []*SysIndustryTreeRes `json:"children" dc:"行业类别子级"`
    40  }
    41  
    42  type SysIndustryTreeListRes []*SysIndustryTreeRes
    43  
    44  // 微信 -----
    45  
    46  type Industry struct {
    47  	BigIndustryInfo      BigIndustryInfo        `json:"big_industry_info"`
    48  	IndustryCategoryList []IndustryCategoryList `json:"industry_category_list"`
    49  }
    50  type BigIndustryInfo struct {
    51  	BigIndustryID   int    `json:"big_industry_id"`
    52  	BigIndustryName string `json:"big_industry_name"`
    53  }
    54  type IndustryCategoryInfo struct {
    55  	CategoryID               int             `json:"category_id"`
    56  	CategoryName             string          `json:"category_name"`
    57  	CategoryDesc             string          `json:"category_desc"`
    58  	QualificationsType       int             `json:"qualifications_type"`
    59  	QualificationsOptions    int             `json:"qualifications_options"`
    60  	QualificationsGuide      string          `json:"qualifications_guide"`
    61  	BigIndustryInfo          BigIndustryInfo `json:"big_industry_info"`
    62  	SubjectInformationDepend int             `json:"subject_information_depend"`
    63  	QualificationSample      string          `json:"qualification_sample"`
    64  }
    65  type SettlementRuleInfo struct {
    66  	SettlementRuleID          int         `json:"settlement_rule_id"`
    67  	MerchantCategory          int         `json:"merchant_category"`
    68  	MerchantEntityType        int         `json:"merchant_entity_type"`
    69  	SettlementRuleDesc        string      `json:"settlement_rule_desc"`
    70  	CashFlow                  int         `json:"cash_flow"`
    71  	RateTemplateID            interface{} `json:"rate_template_id"`
    72  	RateDesc                  string      `json:"rate_desc"`
    73  	Rate                      int         `json:"rate"`
    74  	BillingCycleDesc          string      `json:"billing_cycle_desc"`
    75  	LimitType                 int         `json:"limit_type"`
    76  	CreditCardRestrictions    int         `json:"credit_card_restrictions"`
    77  	SpecialMerchantType       int         `json:"special_merchant_type"`
    78  	SettlementPackageID       string      `json:"settlement_package_id"`
    79  	IndustryOverview          string      `json:"industry_overview"`
    80  	IndustryCategory          int         `json:"industry_category"`
    81  	RateDecimal               string      `json:"rate_decimal"`
    82  	MerchantSpecialAttributes int         `json:"merchant_special_attributes"`
    83  }
    84  type IndustryCategoryList struct {
    85  	IndustryCategoryInfo IndustryCategoryInfo `json:"industry_category_info"`
    86  	SettlementRuleInfo   SettlementRuleInfo   `json:"settlement_rule_info"`
    87  }