Some checks failed
		
		
	
	Build / build (push) Has been cancelled
				
			CodeQL / Analyze (go) (push) Has been cancelled
				
			build / Build (push) Has been cancelled
				
			GitHub Actions Mirror / mirror_to_gitee (push) Has been cancelled
				
			GitHub Actions Mirror / mirror_to_gitlab (push) Has been cancelled
				
			Issue Close Require / issue-close-require (push) Has been cancelled
				
			Issue Check Inactive / issue-check-inactive (push) Has been cancelled
				
			
		
			
				
	
	
		
			32 lines
		
	
	
		
			778 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			778 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package models
 | |
| 
 | |
| import (
 | |
| 	"go-admin/common/models"
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| type TmMemberDailyUsage struct {
 | |
| 	models.Model
 | |
| 
 | |
| 	MemberId    int       `json:"memberId" gorm:"type:bigint;comment:用户id"`
 | |
| 	PlatformId  int       `json:"platformId" gorm:"type:bigint;comment:平台id"`
 | |
| 	UseChars    int       `json:"useChars" gorm:"type:bigint;comment:使用字符数"`
 | |
| 	RemainChars int       `json:"remainChars" gorm:"type:bigint;comment:剩余字符数"`
 | |
| 	Date        time.Time `json:"date" gorm:"type:date;comment:日期"`
 | |
| 	models.ModelTime
 | |
| 	models.ControlBy
 | |
| }
 | |
| 
 | |
| func (TmMemberDailyUsage) TableName() string {
 | |
| 	return "tm_member_daily_usage"
 | |
| }
 | |
| 
 | |
| func (e *TmMemberDailyUsage) Generate() models.ActiveRecord {
 | |
| 	o := *e
 | |
| 	return &o
 | |
| }
 | |
| 
 | |
| func (e *TmMemberDailyUsage) GetId() interface{} {
 | |
| 	return e.Id
 | |
| }
 |